home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Graphics Studio: Home Publishing 99 / [Microsoft Graphics Studio] Home Publishing 99 (Blue) Disk 2.iso / mhp / template / epp3015.mta / epp3015.MTA
Text File  |  1998-08-10  |  72KB  |  2,269 lines

  1. MIME-Version: 1.0
  2. Content-Type: multipart/related;
  3.     boundary="----=_NextPart_000_0302_01BDBE66.19C51550";
  4.     type="multipart/alternative"
  5. X-MMEditor: 00.00.02.1994,MinSave
  6. X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
  7.  
  8. This is a multi-part message in MIME format.
  9.  
  10. ------=_NextPart_000_0302_01BDBE66.19C51550
  11. Content-Type: multipart/alternative;
  12.     boundary="----=_NextPart_001_0303_01BDBE66.19C51550"
  13.  
  14.  
  15. ------=_NextPart_001_0303_01BDBE66.19C51550
  16. Content-Type: text/plain;
  17.     charset="iso-8859-1"
  18. Content-Transfer-Encoding: 7bit
  19.  
  20.      Your message here.        
  21.  
  22.  
  23. ------=_NextPart_001_0303_01BDBE66.19C51550
  24. Content-Type: text/html;
  25.     charset="iso-8859-1"
  26. Content-Transfer-Encoding: quoted-printable
  27. Content-Location: 
  28.  
  29. <!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
  30. <HTML>
  31. <HEAD>
  32.  
  33. <META content=3D"text/html; charset=3Diso-8859-1" =
  34. http-equiv=3DContent-Type>
  35. <META content=3D"MMEditor Version 00.00.02.1994,MinSave" =
  36. name=3DGENERATOR>
  37. <STYLE id=3DDocStyleSheet>.PreCreateRule {
  38.     POSITION: absolute
  39. }
  40. .DocClientData {
  41.     LEFT: 0px; OVERFLOW: hidden; POSITION: absolute; TOP: 20px; VISIBILITY: =
  42. visible
  43. }
  44. .RuntimeScriptDiv {
  45.     LEFT: -3200px; POSITION: absolute; TOP: -3200px; VISIBILITY: hidden
  46. }
  47. .SoundElementsDiv {
  48.     LEFT: -3200px; POSITION: absolute; TOP: -3200px; VISIBILITY: hidden
  49. }
  50. .Sx1 {
  51.     HEIGHT: 301px; LEFT: 10px; OVERFLOW: hidden; POSITION: absolute; TOP: =
  52. 30px; VISIBILITY: hidden; WIDTH: 571px; Z-INDEX: 100
  53. }
  54. .PD2 {
  55.     BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; BORDER-RIGHT: 0px; BORDER-TOP: =
  56. 0px; HEIGHT: 300px; LEFT: 0px; POSITION: absolute; TOP: 0px; VISIBILITY: =
  57. inherit; WIDTH: 570px; Z-INDEX: 50
  58. }
  59. .Ix3 {
  60.     BACKGROUND-COLOR: #ffffff; BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; =
  61. BORDER-RIGHT: 0px; BORDER-TOP: 0px; LEFT: 0px; POSITION: absolute; TOP: =
  62. 0px; VISIBILITY: inherit; Z-INDEX: 51
  63. }
  64. .PI4 {
  65.     BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; BORDER-RIGHT: 0px; BORDER-TOP: =
  66. 0px; HEIGHT: 300px; LEFT: 261px; POSITION: absolute; TOP: -1px; =
  67. VISIBILITY: visible; WIDTH: 279px; Z-INDEX: 120
  68. }
  69. .Ix5 {
  70.     BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; BORDER-RIGHT: 0px; BORDER-TOP: =
  71. 0px; LEFT: 0px; POSITION: absolute; TOP: 0px; VISIBILITY: inherit; =
  72. Z-INDEX: 121
  73. }
  74. .PI24 {
  75.     BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; BORDER-RIGHT: 0px; BORDER-TOP: =
  76. 0px; HEIGHT: 197px; LEFT: 221px; POSITION: absolute; TOP: -14px; =
  77. VISIBILITY: visible; WIDTH: 292px; Z-INDEX: 100
  78. }
  79. .Ix25 {
  80.     BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; BORDER-RIGHT: 0px; BORDER-TOP: =
  81. 0px; LEFT: 0px; POSITION: absolute; TOP: 0px; VISIBILITY: inherit; =
  82. Z-INDEX: 101
  83. }
  84. .PD26 {
  85.     BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; BORDER-RIGHT: 0px; BORDER-TOP: =
  86. 0px; HEIGHT: 309px; LEFT: 168px; POSITION: absolute; TOP: -3px; =
  87. VISIBILITY: visible; WIDTH: 102px; Z-INDEX: 110
  88. }
  89. .Ix27 {
  90.     BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; BORDER-RIGHT: 0px; BORDER-TOP: =
  91. 0px; LEFT: 0px; POSITION: absolute; TOP: 0px; VISIBILITY: inherit; =
  92. Z-INDEX: 111
  93. }
  94. .PT30 {
  95.     BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; BORDER-RIGHT: 0px; BORDER-TOP: =
  96. 0px; HEIGHT: 84px; LEFT: 33px; PADDING-BOTTOM: 9px; PADDING-LEFT: 9px; =
  97. PADDING-RIGHT: 9px; PADDING-TOP: 9px; POSITION: absolute; TEXT-ALIGN: =
  98. center; TOP: 34px; VISIBILITY: visible; WIDTH: 200px; Z-INDEX: 130
  99. }
  100. DIV {
  101.     FONT-FAMILY: Times New Roman
  102. }
  103. </STYLE>
  104.  
  105. <STYLE id=3DFontStyleSheet>@font-face {
  106.     font-family: Kristen ITC;
  107.     src:url(cid:030001bdbea0$c60bf880$745e389d@vhamil4.dns.microsoft.com);
  108. }
  109. </STYLE>
  110.  
  111. </HEAD>
  112. <BODY background=3D"" bgColor=3D#c0c0c0 leftMargin=3D0 topMargin=3D0>
  113. <DIV class=3DPreCreateRule id=3DNavigationButtons style=3D"VISIBILITY: =
  114. hidden">
  115. <FORM name=3DNavigationButtonsForm><INPUT name=3DStart type=3Dbutton =
  116. value=3D"Play  >/Replay >"><INPUT name=3DBackward type=3Dbutton =
  117. value=3D"Back  <<"><INPUT name=3DForward type=3Dbutton value=3D"Forward  =
  118. >>"><INPUT name=3DWebpage type=3Dbutton value=3DAbout...><INPUT =
  119. name=3DSceneStatus type=3Dbutton value=3D" Loading... "></FORM></DIV>=20
  120. <DIV class=3DDocClientData id=3DDocClientData GW_NextID =3D 64 AOPTable =
  121. =3D=20
  122. " <AR|ARS2| <AP|APa{guid =
  123. {A3649D6E-5058-11CF-9E27-00AA00BBB8AF}}|APbGreetings Workshop|>| =
  124. <AP|APa{guid {A3649D6E-5058-11CF-9E27-00BBCCBBB8AF}}|APbPseudoPack to =
  125. Fix Bug 8020|>|>|"=20
  126. ProjectType =3D "multimedia greeting" OutputStyle =3D=20
  127. "short page for single photographs" KeyWords =3D null skuGW =3D null =
  128. skuGWDelux =3D 1=20
  129. skuOE =3D null lclEnglish =3D 1 lclZ =3D 1 lclFrench =3D null lclJ =3D =
  130. null Themes =3D=20
  131. " <AR|ARS1| =
  132. <TT|TTa5|TTb0|TTc30928|TTd5|TTe0|TTf30929|TTg5|TTh0|TTi30936|>|>|">
  133. <DIV class=3DSx1 id=3DSx1 PageEffect =3D=20
  134. " <PE| <TR|TRa0|TRb2|TRc2|TRd1|TRe2|>|PEa0|PEb10|>|" SoundPaths =3D=20
  135. " <AR|ARS1| <SN| =
  136. <CP|CPa8A80000090300000000000000C000000000000642000000030300000000000000C=
  137. 00000000000064000001000000A38414C4C4D41425B4C5D41494E4C500FFFFDAED0000000=
  138. 0000000000000000000000000000000000000000008B9D1172F201D112B4400AA007AB4FF=
  139. C0000000A6000300030093005300930073002300E20077001600670000000000000000000=
  140. 0000000000000000000000000000000000000000000000000000000000000000000000000=
  141. 0000000000000000000000000000000000000000000000000000000000000000000000000=
  142. 0000000000000000000000000000000000000000000000000000000000000000000000000=
  143. 0000000000000000000000000000000000000000000000000000000000000000000000000=
  144. 0000000000000000000000000000000000000000000000000000000000000000000000000=
  145. 0000000000000000000000000000000000000000000000000000000000000000000000000=
  146. 0000000000000000000000000000000000000000000000000000000000000000000000000=
  147. 0000000000000000000000000000000000000000000000000000000000000000000000000=
  148. 0000000000000000000000000000000000000000000000000000000000000000000000000=
  149. 0000000000000000000000000000000000000000000000000000000000000000000000000=
  150. 0000000000000000000000000000000000000000000000000000000000000000000000000=
  151. 0000000000000000000000000000000000000000000000000000000000000000000000000=
  152. 0000000000000000000000000000000000000000000000000000000000000000000000000=
  153. 0000000000000000000000000000000000000000000000000000000000000000000000000=
  154. 0000000000000000000000000000000000000000000000000000000000000000000000000=
  155. 0000000000000000000000000000000000000000000000000000000000000000000000000=
  156. 0000000000000000000000000000000000000000000000000000000000000000000000000=
  157. 0000000000000000000000000000000000000000000000000000000000000000000000000=
  158. 0000000000000000000000000000000000000000000000000000000000000000000000000=
  159. 0000000000000000000000000000000000000000000000000000000000000000000000000=
  160. 0000000000000000000000000000000000000000000000000000000000000000000000000=
  161. 0000000000000000000000000000000000000000000000000000000000000000000000000=
  162. 0000000000000000000000000000000000000000000000000000000000000000000000000=
  163. 0000000000000000000000000000000000000000000000000000000000000000000000000=
  164. 0000000000000000000000000000000000000000000000000000000000000000000000000=
  165. 0000000000000000000000000000000000000000000000000000000000000000000000000=
  166. 0000000000000000000000000000000000000000000000000000000000000000000000000=
  167. 0000000000000000000000000000000000000000000000000000000000000000000000000=
  168. 0000000000000000000000000000000000000000000000000000000000000000000000000=
  169. 0000000000000000000000000000000000000000000000000000000000000000000000000=
  170. 0000000000000000000000000000000000000000000000000000000000000000000000000=
  171. 0000000000000000000000000000000000000000000000000000000000000000000000000=
  172. 0000000000000000000000000000000000000000000000000000000000000000000000000=
  173. 0000000000000000000000000000000000000000000000000000000000000000000000000=
  174. 0000000000000000000000000000000000000000000000000000000000000000000000000=
  175. 0000000000000000000000000000000000000000000000000000000000000000000000000=
  176. 0000000000000000000000000000000000000000000000000000000000000000000000000=
  177. 0000000000000000000000000000000000000000000000000000000000000000000000000=
  178. 0000000000000000000000000000000000000000000000000000000000000000000000000=
  179. 0000000000000000000000000000000000000000000000000000000000000000000000000=
  180. 0000000000000000000000000000000000000000000000000000000000000000000000000=
  181. 00000000000000000000000000000000000000000000000000000000008E4B32000000000=
  182. 0000000000000000000000000000000000000000000000000000000000000000000000000=
  183. 0000000000000000000000000000000000000000000000000000000000000000000000000=
  184. 0000000000000000000000000000000000000000000000000000000000000000000000000=
  185. 0000000000000000000000000000000000000000000000000000000000000000000000000=
  186. 0000000000000000000000000000000000000000000000000000000000000000000000000=
  187. 0000000000000000000000000000000000000000000000000000000000000000000000000=
  188. 0000000000000000000000000000000000000000000000000000000000000000000000000=
  189. 0000000000000000000000000000000000000000000000000000000000000000000000000=
  190. 0000000000000000000000000000000000000000000000000000000000000000000000000=
  191. 0000000000000000000000000000000000000000000000000000000000000000000000000=
  192. 00000000000000000000000EA00101020004400007E6B108E3A59B0440054003500B40045=
  193. 00F4000500C5003500F6005700E60046003700C50027005700E6003700E600B6000300230=
  194. 0E200770016006700C2000200340086001600E600760056000200D3000200350016006700=
  195. 560046000200D400F600E6009600B6005600270002006600F6002700020072008400F400D=
  196. 40054003500E400D400D4007200D000A000120012007500F400E400B40054004400|CPbC:=
  197. \WINDOWS\DESKTOP\renamed template =
  198. elements\j0095972.wav|CPccid:028a01bdae6b$a528f360$7159389d@a-benex1.dns.=
  199. microsoft.com|CPdj0095972.wav|>|SNa1|SNb0|SNc0|SNd0|SNe0|>|>|"=20
  200. PageName =3D PD2>
  201. <DIV class=3DPD2 id=3DPD2 NoBackground =3D 1 PolyPath =3D=20
  202. 1,6,0.286865,137.319,0,300,570,300,570,0,0.286865,0,0.286865,137.319,2,16=
  203. 777215,0,><IMG=20
  204. class=3DIx3 id=3DIx3 name=3DIx3=20
  205. src=3D"cid:02f601bdbea0$c5b63760$745e389d@vhamil4.dns.microsoft.com"></DI=
  206. V>=20
  207. <DIV class=3DPI4 id=3DPI4 SoundPaths =3D " <AR|ARS0|>|" AnimationPath =
  208. =3D=20
  209. " <AR|ARS3| <PT|PTa710|PTb149|>| <PT|PTa400|PTb149|>| =
  210. <PT|PTa400|PTb150|>|>|"=20
  211. ButtonEvent =3D=20
  212. " <BE|BEa0|BEc| <CP|CPaNIL|CPb|CPc|CPd|>| <CP|CPaNIL|CPb|CPc|CPd|>| =
  213. <CP|CPaNIL|CPb|CPc|CPd|>|>|"=20
  214. ExitEffect =3D=20
  215. " <EE| =
  216. <TR|TRa0|TRb2|TRc2|TRd1|TRe2|>|EEa0|EEb0|EEc100|EEd0|EEf0|EEg0|>|"=20
  217. EntranceEffect =3D=20
  218. " <EE| =
  219. <TR|TRa0|TRb2|TRc2|TRd1|TRe2|>|EEa0|EEb0|EEc0|EEd100|EEf0|EEg1|>|"=20
  220. TravelEffectOptions =3D " <TE|TEa0|TEb4|TEc1|TEd0|>|" ImageType =3D 0 =
  221. ClipPathInfo =3D=20
  222. " =
  223. <CP|CPa8C00000030300000000000000C00000000000064000052000000A384F4D4540525=
  224. 54D4C5D41494E4C584D4052544942523C5A403039353632393E274946400FFFFDAED00000=
  225. 00000000000000000000000000000000000000000000000000000000000000BCDD10047F1=
  226. 2330400000000000000000000000000000000000000000000000000000000000000000000=
  227. 000100000000000000000000000000000000000000000000000000000008BF12330400000=
  228. 00000000000000000000000000000000000000000000000000|CPbC:\WINDOWS\DESKTOP\=
  229. Sourcesafe =
  230. dest5\j0095629.gif|CPccid:00a501bd79e1$c02514a0$7159389d@a-benex1.dns.mic=
  231. rosoft.com|CPdj0095629.gif|>|"><IMG=20
  232. class=3DIx5 height=3D300 id=3DIx5 name=3DIx5=20
  233. src=3D"cid:00a501bd79e1$c02514a0$7159389d@a-benex1.dns.microsoft.com"=20
  234. width=3D279></DIV>=20
  235. <DIV class=3DPI24 id=3DPI24 SoundPaths =3D " <AR|ARS0|>|" AnimationPath =
  236. =3D=20
  237. " <AR|ARS3| <PT|PTa673|PTb83|>| <PT|PTa367|PTb84|>| =
  238. <PT|PTa367|PTb84|>|>|"=20
  239. ButtonEvent =3D=20
  240. " <BE|BEa0|BEc| <CP|CPaNIL|CPb|CPc|CPd|>| <CP|CPaNIL|CPb|CPc|CPd|>| =
  241. <CP|CPaNIL|CPb|CPc|CPd|>|>|"=20
  242. ExitEffect =3D=20
  243. " <EE| =
  244. <TR|TRa0|TRb2|TRc2|TRd1|TRe2|>|EEa0|EEb0|EEc100|EEd0|EEf0|EEg0|>|"=20
  245. EntranceEffect =3D=20
  246. " <EE| =
  247. <TR|TRa0|TRb2|TRc2|TRd1|TRe2|>|EEa0|EEb0|EEc0|EEd100|EEf0|EEg1|>|"=20
  248. TravelEffectOptions =3D " <TE|TEa0|TEb4|TEc1|TEd0|>|" ImageType =3D 0 =
  249. ClipPathInfo =3D=20
  250. " =
  251. <CP|CPa8C00000030300000000000000C00000000000064000052000000A384F4D4540525=
  252. 54D4C5D41494E4C584D4052544942523C50584030393532384E2A4057400FFFFDAED00000=
  253. 0000000000000000000000000000000000000000000001F4A6F2230300000286A6F221200=
  254. 000034000000B4000000F11000000000000010000000200000000000000005A07A1000000=
  255. 00000000000000000000000000046A07A100000000000000000A00000000000000087A07A=
  256. 1000000000000000000000000000000000000000001C000000|CPbC:\WINDOWS\DESKTOP\=
  257. Sourcesafe =
  258. dest5\photos\PH00952H.JPG|CPccid:00bf01bd79e2$49f05960$7159389d@a-benex1.=
  259. dns.microsoft.com|CPdPH00952H.JPG|>|"><IMG=20
  260. class=3DIx25 height=3D197 id=3DIx25 name=3DIx25=20
  261. src=3D"cid:00bf01bd79e2$49f05960$7159389d@a-benex1.dns.microsoft.com"=20
  262. width=3D292></DIV>=20
  263. <DIV class=3DPD26 id=3DPD26 SoundPaths =3D " <AR|ARS0|>|" PolyPath =3D=20
  264. 1,6,0.0508304,140.98,0,308,101,308,101,0,0.0508304,0,0.0508304,140.98,2,1=
  265. 6777215,1,6,1,50331647,=20
  266. AnimationPath =3D=20
  267. " <AR|ARS3| <PT|PTa547|PTb150|>| <PT|PTa219|PTb151|>| =
  268. <PT|PTa219|PTb151|>|>|"=20
  269. ButtonEvent =3D=20
  270. " <BE|BEa0|BEc| <CP|CPaNIL|CPb|CPc|CPd|>| <CP|CPaNIL|CPb|CPc|CPd|>| =
  271. <CP|CPaNIL|CPb|CPc|CPd|>|>|"=20
  272. ExitEffect =3D=20
  273. " <EE| =
  274. <TR|TRa0|TRb2|TRc2|TRd1|TRe2|>|EEa0|EEb0|EEc100|EEd0|EEf0|EEg0|>|"=20
  275. EntranceEffect =3D=20
  276. " <EE| =
  277. <TR|TRa0|TRb2|TRc2|TRd1|TRe2|>|EEa0|EEb0|EEc0|EEd100|EEf0|EEg1|>|"=20
  278. TravelEffectOptions =3D " <TE|TEa0|TEb4|TEc1|TEd0|>|" DrawType =3D =
  279. 1><IMG class=3DIx27=20
  280. id=3DIx27 name=3DIx27=20
  281. src=3D"cid:00b401bda9f1$cd159c80$7159389d@a-benex1.dns.microsoft.com"></D=
  282. IV>=20
  283. <DIV class=3DPT30 id=3DPT30 SoundPaths =3D=20
  284. " <AR|ARS1| <SN| =
  285. <CP|CPaA800000030300000000000000C000000000000640000C1000000A384F4D45435E4=
  286. D4D4C5D41494E4C52594D43584450343E275146500FFFFDAED00000000000000000000000=
  287. 0000000000000000000000000930093001600930003001600230003004200730013005300=
  288. 9300330083009300460004001600D20026005600E600560087001300E2004600E6003700|=
  289. CPbC:\WINDOWS\DESKTOP\Sounds\rimsht04.wav|CPccid:005201bda308$99a90a20$71=
  290. 59389d@a-benex1.dns.microsoft.com|CPdrimsht04.wav|>|SNa1|SNb0|SNc0|SNd0|S=
  291. Ne0|>|>|"=20
  292. ButtonEvent =3D=20
  293. " <BE|BEa0|BEc| <CP|CPaNIL|CPb|CPc|CPd|>| <CP|CPaNIL|CPb|CPc|CPd|>| =
  294. <CP|CPaNIL|CPb|CPc|CPd|>|>|"=20
  295. ExitEffect =3D=20
  296. " <EE| =
  297. <TR|TRa0|TRb2|TRc2|TRd1|TRe2|>|EEa0|EEb0|EEc100|EEd0|EEf0|EEg0|>|"=20
  298. EntranceEffect =3D=20
  299. " <EE| =
  300. <TR|TRa0|TRb2|TRc2|TRd1|TRe2|>|EEa1|EEb0|EEc0|EEd100|EEf3|EEg2|>|"=20
  301. TravelEffectOptions =3D " <TE|TEa0|TEb2|TEc0|TEd0|>|"><FONT =
  302. color=3D#000000=20
  303. face=3D"Kristen ITC" size=3D5>Your message =
  304. here.</FONT></DIV></DIV></DIV>=20
  305. <DIV class=3DSoundElementsDiv id=3DSoundElementsDiv>  <BGSOUND =
  306. id=3DAW62 soundsrc=20
  307. =3D cid:028a01bdae6b$a528f360$7159389d@a-benex1.dns.microsoft.com> <IMG=20
  308. src=3D""> <BGSOUND id=3DAW63 soundsrc =3D=20
  309. cid:005201bda308$99a90a20$7159389d@a-benex1.dns.microsoft.com> <IMG=20
  310. src=3D""></DIV> =20
  311. <DIV id=3DNavSoundElementsDiv> <EMBED hidden=3Dtrue id=3DAW62nav =
  312. name=3DAW62nav=20
  313. src=3Dcid:028a01bdae6b$a528f360$7159389d@a-benex1.dns.microsoft.com =
  314. autostart =3D no=20
  315. MASTERSOUND></DIV>
  316. <SCRIPT id=3DRuntimeScript language=3DJavaScript>
  317. if ( navigator.appVersion.substring(0,1) < 4 )
  318.  alert("Sorry but your Web browser needs to be updated. You must have at =
  319. least a version 4.0 browser to view this project.");
  320. if ( navigator.appName !=3D "Netscape" )                                            =09
  321. {                                                                                    =09
  322.     document.body.background =3D "";                                                =09
  323.     for ( var ii=3D0; ii<document.all.length; ii++ )                                    =09
  324.         if ((document.all.item(ii).id).indexOf("Sx") !=3D -1)                        =09
  325.             document.all.item(ii).style.filter=3D"revealTrans(duration=3D0, =
  326. transition=3D0)";        =09
  327. }                                                                                    =09
  328.  
  329. var    OBJ_SCENE        =3D 0;        =09
  330. var    OBJ_PLAYER        =3D 1;        =09
  331. var PLAYER_IMAGE    =3D 0;        =09
  332. var    PLAYER_TEXT        =3D 1;        =09
  333. var PLAYER_DRAW        =3D 2;        =09
  334. var    NAME_SCENE        =3D "S"        =09
  335. var    NAME_PLAYER        =3D "P"        =09
  336. var    PLAYER_NAME_IMAGE    =3D "I"    =09
  337. var    PLAYER_NAME_TEXT    =3D "T"
  338. var PLAYER_NAME_DRAW    =3D "D"
  339. var    IE_VISIBLE            =3D "visible";
  340. var    IE_HIDDEN            =3D "hidden";
  341. var    IE_INHERIT            =3D "inherit";
  342. var    NAV_VISIBLE            =3D "show";
  343. var    NAV_HIDDEN            =3D "hide";
  344. var    NAV_INHERIT            =3D "inherit";
  345. var    DEFAULT_TICK_RATE        =3D 100;    =09
  346. var DEFAULT_SCENE_DURATION    =3D 10000;=09
  347. var    DEFAULT_PLAYER_DELAY    =3D 0;    =09
  348. var    TMR_PROJ                =3D 0;    =09
  349. var    TMR_SCENE                =3D 1;    =09
  350. var    RR_NONE                    =3D 0;    =09
  351. var    RR_PAGE_BUTTONS            =3D 1;    =09
  352. var    RR_FULL_RUNTIME            =3D 2;    =09
  353. var    DUR_FOREVER                =3D -1;    =09
  354. var    DELAY_NONE                =3D 0;    =09
  355. var    DELAY_UNTIL_TRANSITION    =3D -1;    =09
  356. var    DELAY_UNTIL_TRIGGER        =3D -2;    =09
  357. var    DUR_UNTIL_DONE            =3D -1;    =09
  358. var TT_ALL_MOUSE_EVENTS    =3D 0;    =09
  359. var    TT_BUTTONDOWN            =3D 1;    =09
  360. var    TT_BUTTONUP                =3D 2;    =09
  361. var    TT_MOUSEOVER            =3D 3;    =09
  362. var    TT_MOUSEOUT                =3D 4;    =09
  363. var    TB_PAGE_TURNER            =3D -1;    =09
  364. var    TB_START_PLAYER            =3D -2;    =09
  365. var NULL_TRANSITION            =3D -1;
  366. var    TEXT_FLYIN                =3D 101;
  367. var TEXT_TYPEWRITER        =3D 102;
  368. var    FLYIN_TOP                =3D 0;
  369. var    FLYIN_BOTTOM            =3D 1;
  370. var    FLYIN_LEFT                =3D 2;
  371. var    FLYIN_RIGHT                =3D 3;
  372. var    FLYIN_ROTATE            =3D 4;
  373. var    FLYIN_BY_LETTER            =3D 1;
  374. var    FLYIN_BY_WORD            =3D 2;
  375. var    FLYIN_BY_LINE            =3D 3;
  376. var    FLYIN_PER_TICK =3D new Array (200, 160, 120, 80, 40);    =09
  377. var    TRANSITION_RATES =3D new Array(1,2,3,4,5);            =09
  378. var    PS_UNINITIALIZED    =3D 0;
  379. var PS_INITIALIZED        =3D 1;
  380. var    PS_RUNNING            =3D 2;
  381. var PS_PAUSED            =3D 3;
  382. var PS_COMPLETE            =3D 4;
  383. var    sceneArray        =3D new Array();=09
  384. var currentScene    =3D null;        =09
  385. var nScenes            =3D 0;        =09
  386. var stProjState =3D PS_UNINITIALIZED;=09
  387. var stButtons    =3D false;        =09
  388. var    stNoInput    =3D 0;            =09
  389. var strPause =3D new Array( "" );
  390. var strPlay =3D new Array( "" );
  391. var    formStatus =3D null;
  392. var    tickTimer        =3D null;        =09
  393. var sys            =3D navigator.appName;                                    =09
  394. var vers        =3D navigator.appVersion.substring(0,1);                    =09
  395. var os            =3D navigator.appVersion.indexOf("NT") >=3D 0 ? "NT" : "95";=09
  396. var    platform    =3D navigator.platform;                                    =09
  397. window.onload =3D PreSetup;
  398. window.onerror =3D Error;
  399. function Error()
  400. {
  401.     alert("There has been an unidentified error in this file's script. You =
  402. may be able to fix this problem by refreshing your browser.");
  403.     return true;
  404. }
  405. function Project( tickRate, startScene, stopScene, rtReq, autoStart, =
  406. delay, webpage )
  407. {
  408.     this.tickRate =3D tickRate;
  409.     this.startScene =3D startScene;
  410.     this.stopScene =3D stopScene;
  411.     this.rtReq =3D rtReq;
  412.     this.autoStart =3D autoStart;
  413.     this.delay =3D delay;
  414.     this.webpage =3D webpage;
  415. }
  416. function PreSetup()
  417. {
  418.     if ( (Project.delay !=3D null) && (Project.delay !=3D 0) )        =09
  419.     {
  420.         setTimeout( "Setup();", Project.delay*1000 );=20
  421.         return;
  422.     }
  423. =09
  424.     Setup();
  425. }
  426. function Setup()=20
  427. { =20
  428.     stNoInput++;                            =09
  429.     if ( vers < 4 ) return;                    =09
  430.     if ( sys =3D=3D "Netscape" )                =09
  431.     {
  432.         document.all =3D new Array;            =09
  433.         Extract(document);                    =09
  434.     =09
  435.         document.body =3D new Object;
  436.         document.body.clientWidth =3D window.innerWidth;
  437.         document.body.clientHeight =3D window.innerHeight;
  438.         document.body.scrollTop =3D window.pageXOffset;=20
  439.         document.body.scrollLeft =3D window.pageYOffset;
  440.     }
  441.     stButtons =3D SetupButtons();                =09
  442.     ProjectInitialize();                    =09
  443.     stNoInput--;                            =09
  444.     if ( (stButtons =3D=3D false) || (Project.autoStart =3D=3D true) )=09
  445.         Start();                                            =09
  446. }
  447. function ProjectInitialize()
  448. {
  449. =09
  450.     tickTimer =3D new Timer();
  451. =09
  452. =09
  453.     InitializeScenes();
  454. =09
  455.     tickTimer.StartTicking();                            =09
  456. =09
  457.     if ( Project.startScene =3D=3D null )        =09
  458.         Project.startScene =3D 0;                =09
  459.     stProjState =3D PS_INITIALIZED;            =09
  460. =09
  461. }
  462. function ProjectStart( startScene )
  463. {
  464.     stProjState =3D PS_RUNNING;
  465.     if ( startScene !=3D null )
  466.         ChangeScene( startScene );
  467.     else
  468.         ChangeScene( Project.startScene );
  469. }
  470. function ProjectComplete()
  471. {
  472.     if ( Project.rtReq =3D=3D RR_PAGE_BUTTONS )    =09
  473.         return;                                =09
  474.     ProjectShutdown();
  475.     StatusChange();                            =09
  476. }
  477. function ProjectShutdown()
  478. {
  479.     KillTimer();                                    =09
  480.     StopEverythingOnScenes( false );
  481.     currentScene =3D null;
  482.     stProjState =3D PS_COMPLETE;                        =09
  483. }
  484. function Extract( obj )
  485. {
  486. =09
  487. =09
  488.     for (var intLayer =3D 0; intLayer< obj.layers.length; intLayer++)=09
  489.     {
  490.         var el =3D obj.layers[intLayer];        =09
  491.         document.all[el.id] =3D new Object    =09
  492.         var newEl =3D document.all[el.id];    =09
  493.     =09
  494.         newEl.id =3D el.id;                            =09
  495.         newEl.style =3D new Object;                    =09
  496.         newEl.style.pixelTop =3D parseInt(el.top);
  497.         newEl.style.pixelLeft =3D parseInt(el.left);
  498.         if (null!=3Del.clip)=20
  499.         {
  500.             newEl.offsetWidth =3D el.clip.width;    =09
  501.             newEl.offsetHeight =3D el.clip.height
  502.         }
  503.     =09
  504.         if        ( el.visibility =3D=3D NAV_HIDDEN )
  505.             newEl.style.visibility =3D IE_HIDDEN;
  506.         else if ( el.visibility =3D=3D NAV_VISIBLE )
  507.             newEl.style.visibility =3D IE_VISIBLE;
  508.         else if    ( el.visibility =3D=3D NAV_INHERIT )
  509.             newEl.style.visibility =3D IE_INHERIT;
  510.         else
  511.             newEl.style.visibility =3D "";
  512.     =09
  513.         newEl.style.zIndex =3D el.zIndex;
  514.         newEl.style.backgroundColor =3D el.bgColor;
  515.         newEl.style.backgroundImage =3D "url("+el.background+")";
  516.         newEl.NSLayer =3D el;                        =09
  517.     =09
  518.     =09
  519.     =09
  520.         for (var intLoop =3D 0; intLoop< el.document.images.length; intLoop++)
  521.         {
  522.             var image =3D el.document.images[intLoop]    =09
  523.             var    imageName =3D image.name;                =09
  524.             if ( imageName =3D=3D null )                =09
  525.                 continue;                            =09
  526.         =09
  527.             document.all[imageName] =3D image;        =09
  528.             document.images[imageName] =3D image;        =09
  529.         }
  530.     =09
  531.         for (var intLoop =3D 0; intLoop< el.document.forms.length; intLoop++)=20
  532.         {
  533.             var form =3D el.document.forms[intLoop];    =09
  534.             var formName =3D form.name;                =09
  535.             if ( formName =3D=3D null )
  536.                 continue;
  537.             document.all[formName] =3D form;            =09
  538.             document.forms[formName] =3D form;        =09
  539.         =09
  540.             for ( var innerLoop =3D 0; innerLoop < form.elements.length; =
  541. innerLoop++)
  542.             {
  543.                 var element =3D form.elements[innerLoop]=09
  544.                 var elementName =3D element.name;
  545.                 if ( elementName =3D=3D null )            =09
  546.                     continue;
  547.                 document.all[elementName] =3D element;=09
  548.             }
  549.         }
  550.         if ( el.layers.length > 0 )                =09
  551.             Extract(el)                            =09
  552.     }
  553. }
  554. function Scene( duration )
  555. {
  556.     this.duration =3D duration;
  557. }
  558. function InitializeScenes()
  559. {
  560.     var objScene;                            =09
  561.     var sceneNumber =3D 0;                    =09
  562. =09
  563.     for ( sceneName in Scenes )
  564.     {
  565.         objScene =3D Scenes[sceneName];        =09
  566.         objScene.number =3D parseInt(sceneNumber);                =09
  567.         objScene.name =3D sceneName;                    =09
  568.         objScene.HTML =3D document.all[sceneName];    =09
  569.         SetVisibility( objScene.HTML, IE_HIDDEN );=09
  570.         if ( Project.rtReq =3D=3D RR_PAGE_BUTTONS )    =09
  571.             objScene.duration =3D DUR_FOREVER;
  572.         InitializePlayers( objScene );        =09
  573.     =09
  574.         if ( objScene.entryTrans =3D=3D null )
  575.         {
  576.             objScene.entryTrans =3D new Object();
  577.             objScene.entryTrans.type =3D NULL_TRANSITION;
  578.         }
  579.     =09
  580.         if ( objScene.Bhv !=3D null )
  581.             for ( var bhvIdx=3D0; (bhv=3DobjScene.Bhv[bhvIdx]) !=3D null; =
  582. bhvIdx++ )=09
  583.                 bhv.Initialize( objScene, bhv);
  584.         objScene.numBhv =3D bhvIdx;                                            =09
  585.         sceneArray[sceneNumber++] =3D objScene;=09
  586.     }
  587.     nScenes =3D sceneNumber;                    =09
  588. }
  589. function StopEverythingOnScenes( fPause )
  590. {
  591.     var objScene;                            =09
  592.     for ( sceneName in Scenes )
  593.     {
  594.         objScene =3D Scenes[sceneName];                    =09
  595.     =09
  596.     =09
  597.         if ( objScene.Bhv !=3D null )
  598.             for ( var bhvIdx=3D0; (bhv=3DobjScene.Bhv[bhvIdx]) !=3D null; =
  599. bhvIdx++ )=09
  600.                 bhv.StopEverything( bhv, fPause );
  601.         StopEverythingOnPlayers( objScene, fPause );        =09
  602.     }
  603.     return;
  604. }
  605. function ChangeScene( nextSceneNumber )
  606. {
  607.     var    previousScene =3D currentScene;                    =09
  608.     StopSceneTimers();                                    =09
  609.     currentScene =3D GetSceneFromNumber( nextSceneNumber );=09
  610.     currentScene.previousScene =3D previousScene;            =09
  611.     if ( currentScene.duration =3D=3D null )                =09
  612.         currentScene.duration =3D DEFAULT_SCENE_DURATION;    =09
  613. =09
  614.     if ( currentScene.Bhv !=3D null )
  615.         for ( var bhvIdx=3D0; bhvIdx<currentScene.numBhv; bhvIdx++ )=09
  616.         {
  617.             var bhv =3D currentScene.Bhv[bhvIdx]
  618.             if ( bhv =3D=3D null)                            =09
  619.                 continue;
  620.             var delay =3D bhv.delay
  621.             if        ( (delay =3D=3D null) || (delay =3D=3D DELAY_NONE) )=09
  622.                 bhv.Start( bhv );                                    =09
  623.             else if ( delay > 0 )                                =09
  624.                 StartOneShotTimer( bhv, bhv.delay, bhv.Start, TMR_SCENE );
  625.         }
  626.     StartScenePlayers( currentScene );                            =09
  627.     StartTransition( currentScene, currentScene.entryTrans, IE_VISIBLE, =
  628. SceneTransitionDone );=09
  629. =09
  630.     if ( currentScene.duration !=3D DUR_FOREVER )            =09
  631.         StartOneShotTimer( currentScene, currentScene.duration, SceneExit, =
  632. TMR_SCENE );
  633.     StatusChange();                                        =09
  634.     return;
  635. }
  636. function SceneTransitionDone( objScene )
  637. {
  638. =09
  639. =09
  640.     if ( currentScene.previousScene !=3D null )
  641.         SetVisibility( currentScene.previousScene.HTML, IE_HIDDEN );
  642. =09
  643.     if ( currentScene.Bhv !=3D null )
  644.         for ( bhvIdx=3D0; bhvIdx<currentScene.numBhv; bhvIdx++ )=09
  645.         {
  646.             var bhv =3D currentScene.Bhv[bhvIdx]
  647.             if ( bhv =3D=3D null)                            =09
  648.                 continue;
  649.             if ( bhv.delay =3D=3D DELAY_UNTIL_TRANSITION  )=09
  650.                 bhv.Start( bhv );                                =09
  651.         }
  652.     =09
  653.     StartScenePlayersAfterTransition( currentScene );=09
  654. }
  655. function SceneExit( thisScene, nextScene )
  656. {
  657.     var nextSceneNumber =3D nextScene =3D=3D null ? currentScene.number+1 : =
  658. nextScene.number;
  659.     var finalScene =3D (nextSceneNumber <=3D Project.stopScene) ? false : =
  660. true;
  661. =09
  662. =09
  663. =09
  664.     for ( playerName in currentScene.Players )
  665.     {
  666.         objPlayer =3D currentScene.Players[playerName];        =09
  667.         PlayerExitTransitionDone( objPlayer, finalScene );    =09
  668.     }
  669. =09
  670.     if ( currentScene.Bhv !=3D null )
  671.         for ( bhvIdx=3D0; bhvIdx<currentScene.numBhv; bhvIdx++ )=09
  672.         {
  673.             var bhv =3D currentScene.Bhv[bhvIdx]
  674.             if ( bhv =3D=3D null)                            =09
  675.                 continue;
  676.             if ( bhv.duration =3D=3D DUR_UNTIL_DONE  )        =09
  677.                 bhv.Stop( bhv );                        =09
  678.         }
  679. =09
  680. =09
  681.     if ( finalScene =3D=3D false )                    =09
  682.         ChangeScene( nextSceneNumber )            =09
  683.     else
  684.         ProjectComplete()                        =09
  685.     =09
  686. }
  687. function Player( delay, duration )
  688. {
  689.     this.delay =3D delay;
  690.     this.duration =3D duration;
  691. }
  692. function InitializePlayers( objScene )
  693. {
  694.     var objPlayer;                        =09
  695.     var    playerNumber =3D 0;                =09
  696.     for ( playerName in objScene.Players )
  697.     {
  698.         objPlayer =3D objScene.Players[playerName];        =09
  699.         objPlayer.number =3D playerNumber;                =09
  700.         objPlayer.name =3D playerName;                    =09
  701.         objPlayer.HTML =3D document.all[playerName];        =09
  702.         SetVisibility( objPlayer.HTML, IE_HIDDEN );        =09
  703.         objPlayer.position =3D new Position(objPlayer);    =09
  704.     =09
  705.         if ( objPlayer.delay =3D=3D null )                    =09
  706.             objPlayer.delay =3D DEFAULT_PLAYER_DELAY;        =09
  707.     =09
  708.     =09
  709.         if        ( objPlayer.entryTrans =3D=3D null )
  710.         {
  711.             objPlayer.entryTrans =3D new Object();
  712.             objPlayer.entryTrans.type =3D NULL_TRANSITION;
  713.         }=20
  714.     =09
  715.         else if ((objPlayer.entryTrans !=3D null) &&            =09
  716.             (GetPlayerTypeFromName(objPlayer.name) =3D=3D PLAYER_TEXT))
  717.         {
  718.             if ( (objPlayer.entryTrans.type =3D=3D TEXT_FLYIN) || =
  719. (objPlayer.entryTrans.type =3D=3D TEXT_TYPEWRITER) )
  720.                 if ( InitializeTextFlyin( objPlayer ) =3D=3D false )
  721.                     objPlayer.entryTrans.type =3D null;                            =09
  722.         }
  723.     =09
  724.         if ( objPlayer.exitTrans =3D=3D null )
  725.         {
  726.             objPlayer.exitTrans =3D new Object();
  727.             objPlayer.exitTrans.type =3D NULL_TRANSITION;
  728.         }
  729.     =09
  730.         if ( objPlayer.Bhv !=3D null )
  731.         {
  732.             for ( bhvIdx=3D0; (bhv=3DobjPlayer.Bhv[bhvIdx]) !=3D null; bhvIdx++ )    =
  733.  
  734.                 bhv.Initialize( objPlayer, bhv);
  735.             objPlayer.numBhv =3D bhvIdx;                                    =09
  736.         }
  737.         else
  738.             objPlayer.numBhv =3D 0;
  739.         playerNumber ++;                =09
  740.     }=09
  741. }
  742. function StopEverythingOnPlayers( objScene, fPause )
  743. {
  744.     var objPlayer;                        =09
  745.     for ( playerName in objScene.Players )
  746.     {
  747.         objPlayer =3D objScene.Players[playerName];        =09
  748.     =09
  749.     =09
  750.         if ( objPlayer.Bhv !=3D null )
  751.         {
  752.             for ( bhvIdx=3D0; (bhv=3DobjPlayer.Bhv[bhvIdx]) !=3D null; bhvIdx++ )    =
  753.  
  754.                 bhv.StopEverything( bhv, fPause );
  755.         }
  756.         DisableTrigger( objPlayer );                    =09
  757.     }=09
  758.     return;
  759. }
  760. function StartScenePlayers( objScene )
  761. {
  762. =09
  763.     for ( playerName in objScene.Players )
  764.     {
  765.         objPlayer =3D objScene.Players[playerName];        =09
  766.     =09
  767.     =09
  768.     =09
  769.         if        ( objPlayer.delay =3D=3D DELAY_NONE )        =09
  770.             StartPlayer( objPlayer )                    =09
  771.         else if ( objPlayer.delay    > 0 )                =09
  772.             StartOneShotTimer( objPlayer, objPlayer.delay, StartPlayer, =
  773. TMR_SCENE);
  774.     }
  775. }
  776. function StartScenePlayersAfterTransition( objScene )
  777. {
  778. =09
  779.     for ( playerName in objScene.Players )
  780.     {
  781.         objPlayer =3D objScene.Players[playerName];        =09
  782.         if ( objPlayer.delay =3D=3D DELAY_UNTIL_TRANSITION )=09
  783.             StartPlayer( objPlayer )                    =09
  784.     }
  785. }
  786. function StartPlayer( objPlayer )
  787. {
  788. =09
  789.     if ( objPlayer.Bhv !=3D null )
  790.         for ( bhvIdx=3D0; bhvIdx<objPlayer.numBhv; bhvIdx++ )=09
  791.         {
  792.             var bhv =3D objPlayer.Bhv[bhvIdx]
  793.             if ( bhv =3D=3D null)                            =09
  794.                 continue;
  795.             var delay =3D bhv.delay
  796.             if        ( (delay =3D=3D null) || (delay =3D=3D DELAY_NONE) )=09
  797.                 bhv.Start( bhv );                                =09
  798.             else if ( delay > 0 )                                =09
  799.                 StartOneShotTimer( bhv, bhv.delay, bhv.Start, TMR_SCENE );
  800.         }
  801. =09
  802.     StartTransition( objPlayer, objPlayer.entryTrans, IE_VISIBLE, =
  803. PlayerEntryTransitionDone );
  804. =09
  805. =09
  806.     if ( objPlayer.duration > 0 )
  807.         StartOneShotTimer( objPlayer, objPlayer.duration, PlayerExit, =
  808. TMR_SCENE );                                =09
  809. }
  810. function PlayerEntryTransitionDone( objPlayer )
  811. {
  812. =09
  813.     if ( objPlayer.Bhv !=3D null )
  814.         for ( bhvIdx=3D0; bhvIdx<objPlayer.numBhv; bhvIdx++ )=09
  815.         {
  816.             var bhv =3D objPlayer.Bhv[bhvIdx]
  817.             if ( bhv =3D=3D null)                            =09
  818.                 continue;
  819.             if ( bhv.delay =3D=3D DELAY_UNTIL_TRANSITION  )=09
  820.                 bhv.Start( bhv );                                =09
  821.         }
  822. =09
  823.     if ( objPlayer.Triggers !=3D null )
  824.         EnableTrigger( objPlayer );
  825. }
  826. function PlayerExit( objPlayer )
  827. {
  828. =09
  829.     StartTransition( objPlayer, objPlayer.exitTrans, IE_HIDDEN, =
  830. PlayerExitTransitionDone );
  831. }
  832. function PlayerExitTransitionDone( objPlayer, finalScene )
  833. {
  834. =09
  835.     if ( objPlayer.Bhv !=3D null )
  836.         for ( bhvIdx=3D0; bhvIdx<objPlayer.numBhv; bhvIdx++ )=09
  837.         {
  838.             var bhv =3D objPlayer.Bhv[bhvIdx]
  839.             if ( bhv =3D=3D null)                            =09
  840.                 continue;
  841.             if ( bhv.duration =3D=3D DUR_UNTIL_DONE  )        =09
  842.                 bhv.Stop( bhv );                        =09
  843.         }
  844. =09
  845.     if ( (finalScene =3D=3D null) || (finalScene =3D=3D false) )
  846.         SetVisibility( objPlayer.HTML, IE_HIDDEN );        =09
  847. =09
  848. =09
  849. =09
  850.     if ( (sys !=3D "Netscape") && (objPlayer.HTML.Preview !=3D null) )
  851.         SetVisibility( objPlayer.HTML, IE_VISIBLE );=20
  852.     return;
  853. }
  854. function Trigger( trigType, trigBhv, player, scene )
  855. {
  856.     this.triggerType =3D trigType;
  857.     this.triggerBhv =3D trigBhv;
  858.     this.player =3D player;
  859.     this.nextSceneNum =3D scene;
  860. }
  861. function EnableTrigger( objPlayer )
  862. {
  863.     if ( sys !=3D "Netscape" )                                =09
  864.     {
  865.         objPlayer.HTML.style.cursor=3D"hand";                    =09
  866.         for ( trx in objPlayer.Triggers )                    =09
  867.         {
  868.             var    trigger =3D objPlayer.Triggers[trx];            =09
  869.             if ( trigger.triggerType =3D=3D null )
  870.                 trigger.triggerType =3D 0;                    =09
  871.             var tt =3D trigger.triggerType;                    =09
  872.             if            ( tt =3D=3D TT_ALL_MOUSE_EVENTS )                            =09
  873.             {
  874.                 objPlayer.HTML.onmousedown =3D EventProcessor;
  875.                 objPlayer.HTML.onmouseup =3D EventProcessor;=09
  876.                 objPlayer.HTML.onmouseover =3D EventProcessor;    =09
  877.                 objPlayer.HTML.onmouseout =3D EventProcessor;
  878.             }
  879.             else if        ( tt =3D=3D TT_BUTTONDOWN )                =09
  880.                 objPlayer.HTML.onmousedown =3D EventProcessor;
  881.             else if        ( tt =3D=3D TT_BUTTONUP )        =09
  882.                 objPlayer.HTML.onmouseup =3D EventProcessor;
  883.             else if        ( tt =3D=3D TT_MOUSEOVER )        =09
  884.                 objPlayer.HTML.onmouseover =3D EventProcessor;
  885.             else if        ( tt =3D=3D TT_MOUSEOUT )        =09
  886.                 objPlayer.HTML.onmouseout =3D EventProcessor;
  887.         }
  888.     }
  889.     else                                        =09
  890.     {
  891.         for ( trx in objPlayer.Triggers )        =09
  892.         {
  893.             var    trigger =3D objPlayer.Triggers[trx];=09
  894.             if ( trigger.triggerType =3D=3D null )
  895.                 trigger.triggerType =3D 0;                    =09
  896.             var tt =3D trigger.triggerType;                    =09
  897.             if ( tt=3D=3D 0 )                                    =09
  898.             {
  899.                 objPlayer.HTML.NSLayer.captureEvents( Event.MOUSEUP | =
  900. Event.MOUSEDOWN | Event.MOUSEOVER | Event.MOUSEOUT );
  901.                 objPlayer.HTML.NSLayer.onMouseUp =3D EventProcessor;
  902.                 objPlayer.HTML.NSLayer.onMouseDown =3D EventProcessor;
  903.                 objPlayer.HTML.NSLayer.onMouseOver =3D EventProcessor;
  904.                 objPlayer.HTML.NSLayer.onMouseOut =3D EventProcessor;
  905.             }
  906.             else if    ( tt =3D=3D TT_BUTTONUP )
  907.             {
  908.                 objPlayer.HTML.NSLayer.captureEvents(Event.MOUSEUP);
  909.                 objPlayer.HTML.NSLayer.onMouseUp =3D EventProcessor;
  910.             }
  911.             else if ( tt =3D=3D TT_BUTTONDOWN )
  912.             {
  913.                 objPlayer.HTML.NSLayer.captureEvents(Event.MOUSEDOWN);
  914.                 objPlayer.HTML.NSLayer.onMouseDown =3D EventProcessor;
  915.             }
  916.         }
  917.     =09
  918.     }
  919. }
  920. function DisableTrigger( objPlayer )
  921. {
  922.     if ( sys !=3D "Netscape" )            =09
  923.     {
  924.         objPlayer.HTML.onmousedown =3D null;
  925.         objPlayer.HTML.onmouseup =3D null;=09
  926.         objPlayer.HTML.onmouseover =3D null;    =09
  927.         objPlayer.HTML.onmouseout =3D null;
  928.     }
  929.     else                                =09
  930.         objPlayer.HTML.NSLayer.releaseEvents(Event.MOUSEUP | Event.MOUSEDOWN | =
  931. Event.MOUSEOVER | Event.MOUSEOUT );
  932. }
  933. function EventProcessor( e )
  934. {
  935.     var trigger;                                =09
  936.     var    type;                                    =09
  937.     var    button;                                    =09
  938.     var    eventType;                                =09
  939.     var objPlayer;                                =09
  940.     if ( (objPlayer =3D GetPlayerFromName(this.id)) =3D=3D null)=09
  941.         return;
  942.     if ( sys !=3D "Netscape" )                    =09
  943.     {
  944.         type =3D event.type;
  945.         button =3D event.button;
  946.     }
  947.     else                                        =09
  948.     {
  949.         type =3D e.type;
  950.         button =3D e.which;
  951.     }
  952. =09
  953.     if (type =3D=3D "mousedown")
  954.     {
  955.         if ( button !=3D 1 )                    =09
  956.             return;
  957.         eventType =3D TT_BUTTONDOWN;
  958.         if ( sys =3D=3D "Netscape" )            =09
  959.         {
  960.             objPlayer.HTML.NSLayer.releaseEvents(Event.MOUSEDOWN);
  961.             objPlayer.HTML.NSLayer.captureEvents(Event.MOUSEDOWN);
  962.         }
  963.     }
  964.     else if (type =3D=3D "mouseup")
  965.     {
  966.         if ( button !=3D 1 )                    =09
  967.             return;
  968.         eventType =3D TT_BUTTONUP;
  969.         if ( sys =3D=3D "Netscape" )            =09
  970.         {
  971.             objPlayer.HTML.NSLayer.releaseEvents(Event.MOUSEUP);
  972.             objPlayer.HTML.NSLayer.captureEvents(Event.MOUSEUP);
  973.         }
  974.     }
  975.     else if (type =3D=3D "mouseover")
  976.     {
  977.         eventType =3D TT_MOUSEOVER;
  978.     }
  979.     else if (type =3D=3D "mouseout")
  980.     {
  981.         eventType =3D TT_MOUSEOUT;
  982.     }
  983.     var triggerArray =3D objPlayer.Triggers;        =09
  984.     var trigger;                                =09
  985. =09
  986.     for ( var trx=3D0; (trigger=3DtriggerArray[trx]) !=3D null; trx++ )
  987.     {
  988.         if ( (trigger.triggerType =3D=3D 0) || (trigger.triggerType =3D=3D =
  989. eventType) )
  990.         {
  991.         =09
  992.         =09
  993.         =09
  994.             if        ( trigger.triggerBhv =3D=3D TB_PAGE_TURNER )
  995.             {
  996.             =09
  997.             =09
  998.                 if ( (trigger.nextSceneNum =3D=3D null) || (trigger.nextSceneNum =
  999. =3D=3D "") )
  1000.                     SceneExit( currentScene );
  1001.                 else
  1002.                 {
  1003.                     if ( Scenes[trigger.nextSceneNum].number < currentScene.number )
  1004.                     {
  1005.                         for ( ii=3D0; ii<=3DcurrentScene.number; ii++ )
  1006.                             InitializePlayers( sceneArray[ii] );
  1007.                     }
  1008.                     SceneExit( currentScene, Scenes[trigger.nextSceneNum] );
  1009.                 }
  1010.             }
  1011.             else if    ( trigger.triggerBhv =3D=3D TB_START_PLAYER )
  1012.                 StartPlayer( GetPlayerFromName( trigger.player ) );            =09
  1013.             else=20
  1014.             {
  1015.             =09
  1016.                 var objTrigPlayer =3D GetPlayerFromName( trigger.player );    =09
  1017.                 var bhv =3D objTrigPlayer.Bhv[trigger.triggerBhv];            =09
  1018.                 bhv.Trigger( bhv, eventType );                                =09
  1019.             }  =09
  1020.         }
  1021.     }
  1022.     return;=09
  1023. }
  1024. function Transition( type, rate, flyFrom, flySubtype )
  1025. {
  1026.     this.type =3D type;
  1027.     this.rate =3D rate;
  1028.     this.flyFrom =3D flyFrom;
  1029.     this.flySubtype =3D flySubtype;
  1030. }
  1031. function StartTransition( transObj, trans, visibility, callback )
  1032. {
  1033.     var    playerType =3D GetObjectTypeFromName( transObj.name );    =09
  1034. =09
  1035. =09
  1036. =09
  1037.     if    ( ("Netscape" =3D=3D sys) ||=20
  1038.         ( (playerType =3D=3D OBJ_PLAYER) && (trans.type =3D=3D =
  1039. NULL_TRANSITION) ) )
  1040.     {
  1041.         SetVisibility( transObj.HTML, visibility );
  1042.         callback( transObj );
  1043.         return;
  1044.     }
  1045. =09
  1046. =09
  1047. =09
  1048. =09
  1049.     if ( ((trans.type =3D=3D TEXT_FLYIN) || (trans.type =3D=3D =
  1050. TEXT_TYPEWRITER)) && (visibility =3D=3D IE_VISIBLE) )
  1051.     {
  1052.         StartTextFlyin( transObj );
  1053.         return;
  1054.     }
  1055. =09
  1056.     if ( platform !=3D "Win32" )
  1057.     {
  1058.         SetVisibility( transObj.HTML, visibility );
  1059.         callback( transObj );
  1060.         return;
  1061.     }
  1062.     =09
  1063. =09
  1064. =09
  1065. =09
  1066. =09
  1067. =09
  1068.     if ( trans.type =3D=3D NULL_TRANSITION )
  1069.     {
  1070.         transObj.HTML.style.filter =3D "revealTrans(duration=3D0, =
  1071. transition=3D0)";
  1072.     }
  1073.     else    =09
  1074.     {
  1075.         duration =3D TRANSITION_RATES[trans.rate];
  1076.         transObj.HTML.style.filter =3D "revealTrans(duration=3D" + duration + =
  1077. ", transition=3D" + trans.type + ")";
  1078.     }
  1079.     stNoInput++;                                    =09
  1080.     transObj.HTML.filters(0).Apply();                =09
  1081. =09
  1082.     SetVisibility( transObj.HTML, visibility );        =09
  1083. =09
  1084.     transObj.HTML.filters(0).Play()                    =09
  1085.     transObj.HTML.onfilterchange =3D TransitionDoneEvent;=09
  1086. }
  1087. function TransitionDoneEvent( )
  1088. {
  1089.     var    type =3D GetObjectTypeFromName( event.srcElement.id );    =09
  1090.     stNoInput--;                                                =09
  1091.     if        ( type =3D=3D OBJ_SCENE )
  1092.     {
  1093.     =09
  1094.         if ( (currentScene !=3D null) && (event.srcElement.id =3D=3D =
  1095. currentScene.name) )
  1096.             SceneTransitionDone();
  1097.     }
  1098.     else if    ( type =3D=3D OBJ_PLAYER )        =09
  1099.     {
  1100.         var objPlayer =3D GetPlayerFromName( event.srcElement.id );
  1101.         if ( this.style.visibility =3D=3D IE_VISIBLE )                =09
  1102.             PlayerEntryTransitionDone( objPlayer ); =20
  1103.         else                                                    =09
  1104.             PlayerExitTransitionDone( objPlayer, false );
  1105.     }
  1106.     return;
  1107. }
  1108. function InitializeTextFlyin( objPlayer )
  1109. {
  1110.     if ( sys =3D=3D "Netscape" )                                    =09
  1111.         return false;
  1112.     var    transition =3D objPlayer.entryTrans;                        =09
  1113.     var    transUnits =3D transition.flySubtype;                        =09
  1114.     var    movePerTick    =3D parseInt(FLYIN_PER_TICK[transition.rate]);=09
  1115. =09
  1116.     var    transDirection =3D (transition.type =3D=3D TEXT_FLYIN) ? =
  1117. transition.flyFrom : FLYIN_TOP;    =09
  1118.     =09
  1119. =09
  1120.     if ( stProjState =3D=3D PS_UNINITIALIZED )
  1121.     {
  1122.         var    textHTML    =3D objPlayer.HTML;                =09
  1123.         var    oldInnerHTML    =3D textHTML.innerHTML;        =09
  1124.         var    newInnerHTML    =3D "";                        =09
  1125.     =09
  1126.         transition.textOrder =3D new Array();                =09
  1127.         textOrder =3D transition.textOrder;                =09
  1128. =09
  1129.     =09
  1130.     =09
  1131.     =09
  1132.     =09
  1133.         var flyinIdx =3D 0;                        =09
  1134.         var    flyinBuffer =3D "";
  1135.     =09
  1136.     =09
  1137.     =09
  1138.         var spanStyle =3D (transition.type =3D=3D TEXT_FLYIN) ? " =
  1139. style=3D'position:relative;visibility:hidden;'" : " =
  1140. style=3D'visibility:hidden;'";
  1141.         for ( var letterIdx=3D0; letterIdx<oldInnerHTML.length; )
  1142.         {
  1143.         =09
  1144.             tempID =3D objPlayer.name+"_tempID"+flyinIdx.toString();
  1145.             newInnerHTML +=3D "<span id=3D" + tempID + spanStyle + ">";
  1146.             while ( letterIdx<oldInnerHTML.length )
  1147.             {
  1148.             =09
  1149.             =09
  1150.             =09
  1151.                 if ( ( (charNext =3D oldInnerHTML.substring(letterIdx, letterIdx+1)) =
  1152. =3D=3D "<") || (charNext =3D=3D "&") )    =09
  1153.                 {
  1154.                     if ( charNext =3D=3D "<" )                                                                =09
  1155.                         endTagIdx =3D oldInnerHTML.indexOf( ">", letterIdx );=09
  1156.                     else
  1157.                         endTagIdx =3D oldInnerHTML.indexOf( ";", letterIdx );=09
  1158.                     var tagString =3D oldInnerHTML.substring( letterIdx, ++endTagIdx );
  1159.                     newInnerHTML +=3D tagString;
  1160.                     letterIdx =3D endTagIdx;                                            =09
  1161.                 =09
  1162.                     if ( ((tagString =3D=3D "</P>") || (tagString =3D=3D "<BR>")) &&
  1163.                         (transUnits !=3D FLYIN_BY_LETTER)    )                                    =09
  1164.                         break;
  1165.                 }
  1166.             =09
  1167.                 else
  1168.                 {
  1169.                     thisChar =3D oldInnerHTML.substring( letterIdx, ++letterIdx );
  1170.                     newInnerHTML +=3D thisChar;
  1171.                     if        ( transUnits =3D=3D FLYIN_BY_LETTER )        =09
  1172.                         break;                                        =09
  1173.                     else if    ( (transUnits =3D=3D FLYIN_BY_WORD ) && thisChar =3D=3D " " =
  1174. )    =09
  1175.                         break;
  1176.                 }
  1177.             }
  1178.             newInnerHTML +=3D "</span>"
  1179.             textOrder[flyinIdx] =3D new Object();
  1180.             textOrder[flyinIdx].name =3D tempID;                                    =09
  1181.             flyinIdx++;                                                            =09
  1182.         }
  1183.     =09
  1184.         if ( flyinIdx =3D=3D 0 )
  1185.             return false;
  1186.     =09
  1187.         textHTML.innerHTML =3D newInnerHTML;
  1188.         transition.numUnits =3D flyinIdx;                        =09
  1189.     }
  1190. =09
  1191. =09
  1192. =09
  1193.     textOrder =3D transition.textOrder;
  1194.     var currentEl =3D document.all[textOrder[0].name];    =09
  1195.     var currentOffset =3D currentEl.offsetLeft;=09
  1196.     var previousEl, previousOffset;
  1197.     for ( var count=3D0; count<transition.numUnits; count++ )        =09
  1198.     {
  1199.         previousOffset =3D currentOffset;                            =09
  1200.         previousEl =3D currentEl;
  1201.         textElName =3D textOrder[count].name;                    =09
  1202.         currentEl =3D document.all[textElName];
  1203.         SetVisibility( currentEl, IE_HIDDEN );
  1204.         currentOffset =3D currentEl.offsetTop;
  1205.     =09
  1206.     =09
  1207.     =09
  1208.     =09
  1209.     =09
  1210.     =09
  1211.         if ( currentOffset !=3D previousOffset )                                =09
  1212.             if ( previousEl.innerHTML =3D=3D " " )                                    =09
  1213.                 previousEl.innerHTML =3D "<br>";
  1214.         if ( transDirection =3D=3D FLYIN_ROTATE )        =09
  1215.             direction =3D count % FLYIN_ROTATE;            =09
  1216.         else
  1217.             direction =3D transDirection;
  1218.     =09
  1219.         if        ( direction =3D=3D FLYIN_LEFT )
  1220.         {
  1221.             tempPos =3D -(currentEl.offsetParent.offsetLeft + =
  1222. currentEl.offsetParent.offsetWidth);
  1223.             currentEl.style.posLeft =3D tempPos;                    =09
  1224.             textOrder[count].dx =3D -movePerTick;                    =09
  1225.             textOrder[count].dy =3D 0;
  1226.             textOrder[count].iterations =3D tempPos / (-movePerTick);=09
  1227.         }
  1228.         else if ( direction =3D=3D FLYIN_RIGHT )
  1229.         {
  1230.             tempPos =3D objPlayer.HTML.parentElement.offsetWidth - =
  1231. currentEl.offsetParent.offsetLeft;
  1232.             currentEl.style.posLeft =3D tempPos;
  1233.             textOrder[count].dx =3D movePerTick;                    =09
  1234.             textOrder[count].dy =3D 0;
  1235.             textOrder[count].iterations =3D tempPos / movePerTick;=09
  1236.         }
  1237.         else if    ( direction =3D=3D FLYIN_TOP )
  1238.         {
  1239.             tempPos =3D -(currentEl.offsetParent.style.posTop + =
  1240. currentEl.offsetParent.offsetHeight);
  1241.             currentEl.style.posTop =3D tempPos;
  1242.             textOrder[count].dx =3D 0;
  1243.             textOrder[count].dy =3D (-movePerTick);                =09
  1244.             textOrder[count].iterations =3D tempPos / (-movePerTick);=09
  1245.         }
  1246.         else if ( direction =3D=3D FLYIN_BOTTOM )
  1247.         {
  1248.             tempPos =3D objPlayer.HTML.parentElement.offsetHeight - =
  1249. currentEl.offsetParent.style.posTop;
  1250.             currentEl.style.posTop =3D tempPos;
  1251.             textOrder[count].dx =3D 0;
  1252.             textOrder[count].dy =3D movePerTick;                    =09
  1253.             textOrder[count].iterations =3D tempPos / movePerTick;=09
  1254.         }
  1255.     }
  1256. =09
  1257.     transition.charIdx =3D 0;                            =09
  1258.     transition.moveIdx =3D 0;                            =09
  1259.     textElName =3D transition.textOrder[0].name;
  1260.     transition.currentEl =3D document.all[textElName];=09
  1261.     SetVisibility( transition.currentEl, IE_VISIBLE );
  1262.     return true;
  1263. }
  1264. function StartTextFlyin( objPlayer )
  1265. {
  1266. =09
  1267.     SetVisibility( objPlayer.HTML, IE_VISIBLE );
  1268.     StartAnimationTimer( objPlayer, TextFlyinTick );
  1269. }
  1270. function TextFlyinTick( objPlayer )
  1271. {
  1272.     var    transition =3D objPlayer.entryTrans;                    =09
  1273.     var    spanObj =3D transition.textOrder[transition.charIdx];    =09
  1274.     var textEl =3D transition.currentEl;                        =09
  1275. =09
  1276. =09
  1277.     if ( ++transition.moveIdx < spanObj.iterations)            =09
  1278.     {
  1279.         textEl.style.posTop -=3D spanObj.dy;                    =09
  1280.         textEl.style.posLeft -=3D spanObj.dx;
  1281.         return false;                                        =09
  1282.     }
  1283.     =09
  1284. =09
  1285.     textEl.style.posTop =3D 0;                                =09
  1286.     textEl.style.posLeft =3D 0;
  1287.     =09
  1288. =09
  1289.     if ( (charIdx =3D ++transition.charIdx) >=3D =
  1290. transition.textOrder.length )=09
  1291.     {
  1292.         PlayerEntryTransitionDone( objPlayer );                =09
  1293.         return true;                                        =09
  1294.     }
  1295.     else
  1296.     {
  1297.         transition.moveIdx =3D 0;                                =09
  1298.         textElName =3D transition.textOrder[charIdx].name;
  1299.         transition.currentEl =3D document.all[textElName];    =09
  1300.         transition.currentEl.style.visibility =3D IE_VISIBLE;    =09
  1301.         return false;                                        =09
  1302.     }                                                        =09
  1303. }
  1304. var    SND_DUR_SCENE            =3D -1;=09
  1305. var    SND_DUR_PROJECT            =3D 0;=09
  1306. var ST_WAV                    =3D 1;=09
  1307. var    ST_MID                    =3D 2;=09
  1308. var    NAV_EXT                    =3D "nav"=09
  1309. var MidiTag                    =3D null;=09
  1310. function Sound( delay, duration, loop, soundType, tagName, fileName )
  1311. {
  1312. =09
  1313.     this.Initialize =3D InitializeSound;
  1314.     this.Start =3D StartSound;
  1315.     this.Trigger =3D StartSound;
  1316.     this.Stop =3D StopSound;
  1317.     this.StopEverything =3D StopEverythingOnSounds;
  1318. =09
  1319.     this.delay =3D delay;
  1320.     this.duration =3D duration;
  1321.     this.loop =3D loop;
  1322.     this.tagName =3D tagName;
  1323.     this.fileName =3D fileName;
  1324.     this.soundType =3D soundType;
  1325. }
  1326. function InitializeSound( objParent, objSound )
  1327. {
  1328.     if ( sys =3D=3D "Netscape" )
  1329.     {
  1330.         objSound.navLoop =3D (objSound.loop =3D=3D -1) ? true : false;
  1331.         objSound.html =3D document[objSound.tagName+NAV_EXT];
  1332.         return;
  1333.     }
  1334.     objSound.objParent =3D objParent;                =09
  1335.     objSound.html =3D document.all[objSound.tagName];=09
  1336.     objSound.fileName =3D objSound.html.soundsrc;    =09
  1337. =09
  1338. =09
  1339.     if (objSound.soundType =3D=3D ST_MID )
  1340.     {
  1341.         if ( MidiTag =3D=3D null )                    =09
  1342.             MidiTag =3D objSound.html;            =09
  1343.         else
  1344.             objSound.html =3D MidiTag;            =09
  1345.     }        =09
  1346. }
  1347. function StartSound( objSound )
  1348. {
  1349.     if ( sys =3D=3D "Netscape" )                    =09
  1350.     {
  1351.         if ( objSound.html !=3D null )            =09
  1352.             objSound.html.play(objSound.navLoop);
  1353.         return;
  1354.     }
  1355.     objSound.html.src =3D objSound.fileName;        =09
  1356.     objSound.html.loop =3D objSound.loop;            =09
  1357.     if ( objSound.soundType =3D=3D ST_WAV )        =09
  1358.         objSound.html.volume =3D 0;                    =09
  1359.     if ( objSound.duration > 0 )
  1360.         StartOneShotTimer( objSound, objSound.duration, objSound.Stop, =
  1361. TMR_PROJ );
  1362. }
  1363. function StopSound( objSound, fPause )
  1364. {
  1365.     if ( sys =3D=3D "Netscape" )                    =09
  1366.     {
  1367.         if ( objSound.html !=3D null )            =09
  1368.             objSound.html.stop();
  1369.         return;
  1370.     }
  1371.     objSound.html.loop =3D 0;
  1372.     objSound.html.src =3D "";                            =09
  1373.     if ( objSound.soundType =3D=3D ST_WAV )
  1374.         objSound.html.volume =3D -10000;
  1375. }
  1376. function StopEverythingOnSounds( objSound )
  1377. {
  1378.     StopSound( objSound, true );
  1379.     if ( (sys !=3D "Netscape") && (os =3D=3D "NT") )                =09
  1380.         objSound.html.volume =3D -500;                        =09
  1381. }
  1382. var    SND_DUR_SCENE            =3D -1;=09
  1383. var    SND_DUR_PROJECT            =3D 0;=09
  1384. function Swapper( idle, hover, click )
  1385. {
  1386. =09
  1387.     this.Initialize =3D InitializeSwap;
  1388.     this.Start =3D StartSwap;
  1389.     this.Trigger =3D TriggerSwap;
  1390.     this.Stop =3D StopSwap;
  1391.     this.StopEverything =3D StopSwap;
  1392. =09
  1393.     this.idle =3D idle;
  1394.     this.hover =3D hover;
  1395.     this.click =3D click;
  1396. }
  1397. function InitializeSwap( objParent, objSwap )
  1398. {
  1399.     if ( stProjState !=3D PS_UNINITIALIZED )            =09
  1400.         return;
  1401. =09
  1402.     var    idle    =3D objSwap.idle;                        =09
  1403.     var    hover    =3D objSwap.hover;
  1404.     var    click    =3D objSwap.click;
  1405. =09
  1406. =09
  1407. =09
  1408. =09
  1409. =09
  1410. =09
  1411. =09
  1412.     if ( (hover !=3D null) && (hover !=3D "") && (document.all[hover].src =
  1413. !=3D null) )
  1414.     {
  1415.         SetVisibility( document.all[hover], IE_HIDDEN );
  1416.         objSwap.srcHover =3D document.all[hover].src;
  1417.         document.all[hover].src =3D "";
  1418.     }
  1419.     else
  1420.         objSwap.srcHover =3D document.all[idle].src;
  1421.     if ( (click !=3D null) && (click !=3D "") && (document.all[click].src =
  1422. !=3D null) )
  1423.     {
  1424.         SetVisibility( document.all[click], IE_HIDDEN );
  1425.         objSwap.srcClick =3D document.all[click].src;
  1426.         document.all[click].src =3D "";
  1427.     }
  1428.     else
  1429.         objSwap.srcClick =3D document.all[idle].src;
  1430. =09
  1431.     objSwap.srcIdle =3D document.all[idle].src;
  1432. }
  1433. function StartSwap( objSwap )
  1434. {
  1435. =09
  1436. }
  1437. function TriggerSwap( objSwap, eventType )
  1438. {
  1439.     if ( eventType =3D=3D TT_BUTTONDOWN )
  1440.         document.all[objSwap.idle].src =3D objSwap.srcClick;
  1441.     else if ( eventType =3D=3D TT_BUTTONUP )
  1442.         document.all[objSwap.idle].src =3D objSwap.srcHover;
  1443.     else if ( eventType =3D=3D TT_MOUSEOVER )
  1444.         document.all[objSwap.idle].src =3D objSwap.srcHover;
  1445.     else if ( eventType =3D=3D TT_MOUSEOUT )
  1446.         document.all[objSwap.idle].src =3D objSwap.srcIdle;
  1447.     return;
  1448. }
  1449. function StopSwap( objSwap, fPause )
  1450. {
  1451.     if ( fPause )                        =09
  1452.         return;
  1453. }
  1454. var    PATH_PER_TICK =3D new Array(50,40,30,20,10);    =09
  1455. var    PE_STOP        =3D 0;                            =09
  1456. var    PE_AGAIN    =3D 1;                            =09
  1457. var    PE_REV        =3D 2;                            =09
  1458. var    PE_EXIT        =3D 3;                            =09
  1459. var    PD_FWD        =3D 1;
  1460. var    PD_BACK        =3D -1;
  1461. function Point( x, y, rate )
  1462. {
  1463.     this.x =3D x;
  1464.     this.y =3D y;
  1465.     this.rate =3D rate;
  1466. }
  1467. function Paths( delay, edgeEffect )
  1468. {
  1469. =09
  1470.     this.Initialize =3D InitializePathAnimation;
  1471.     this.Start =3D StartPathAnimation;
  1472.     this.Trigger =3D StartPathAnimation;
  1473.     this.Stop =3D StopPathAnimation;
  1474.     this.StopEverything =3D StopPathAnimation;
  1475. =09
  1476.     this.delay =3D delay;
  1477.     this.edgeEffect =3D edgeEffect;
  1478. }
  1479. function InitializePathAnimation( objPlayer, path )
  1480. {
  1481.     var    segment;                                =09
  1482.     var pathIndex;
  1483.     var totalDistance;                            =09
  1484.     var    distanceX;                                =09
  1485.     var    distanceY;
  1486.     var dx;                                        =09
  1487.     var    dy;
  1488.     var travelTime;                                =09
  1489.     var    remX;                                    =09
  1490.     var    remY;
  1491. =09
  1492.     if ( stProjState !=3D PS_UNINITIALIZED )
  1493.     {
  1494.         objPlayer.position.SetPosition( path[0].x, path[0].y );
  1495.         return;
  1496.     }
  1497.     path.objPlayer =3D objPlayer;                    =09
  1498.     halfWidth =3D Math.floor(objPlayer.HTML.offsetWidth/2);    =09
  1499.     halfHeight =3D Math.floor(objPlayer.HTML.offsetHeight/2);
  1500. =09
  1501. =09
  1502.     path[0].x -=3D halfWidth;
  1503.     path[0].y -=3D halfHeight;
  1504.     objPlayer.position.SetPosition( path[0].x, path[0].y );
  1505.     for ( pathIndex=3D0; path[pathIndex+1] !=3D null; pathIndex++ )=09
  1506.     {
  1507.         px =3D parseInt(pathIndex);                =09
  1508.         segment =3D path[px];                        =09
  1509.     =09
  1510.     =09
  1511.     =09
  1512.         path[px+1].x -=3D halfWidth;
  1513.         path[px+1].y -=3D halfHeight;
  1514.     =09
  1515.         distanceX =3D path[px+1].x - segment.x;    =09
  1516.         distanceY =3D path[px+1].y - segment.y;    =09
  1517.     =09
  1518.         totalDistance =3D Math.sqrt( (distanceX*distanceX) + =
  1519. (distanceY*distanceY) );
  1520.     =09
  1521.     =09
  1522.         travelTime =3D Math.round(totalDistance / =
  1523. PATH_PER_TICK[segment.rate]);
  1524.     =09
  1525.     =09
  1526.         if ( distanceX > 0 )                        =09
  1527.             dx =3D Math.floor( distanceX / travelTime );=09
  1528.         else if ( distanceX < 0 )                    =09
  1529.             dx =3D Math.ceil( distanceX / travelTime );=09
  1530.         else
  1531.             dx =3D 0;
  1532.     =09
  1533.     =09
  1534.     =09
  1535.     =09
  1536.         remX =3D distanceX % travelTime;
  1537.     =09
  1538.         if ( distanceY > 0 )                        =09
  1539.             dy =3D Math.floor( distanceY / travelTime );
  1540.         else if ( distanceY < 0 )
  1541.             dy =3D Math.ceil( distanceY / travelTime );
  1542.         else
  1543.             dy =3D 0;
  1544.         remY =3D distanceY % travelTime;
  1545.         segment.number =3D px;                        =09
  1546.         segment.ticks =3D 0;
  1547.         segment.travelTime =3D travelTime;
  1548.         segment.dx =3D dx;
  1549.         segment.dy =3D dy;
  1550.         segment.remX =3D remX;
  1551.         segment.remY =3D remY;
  1552.     }
  1553.     path.numSegs =3D parseInt(pathIndex);                =09
  1554.     path.dir =3D PD_FWD;                                        =09
  1555.     return;
  1556. }
  1557. function StartPathAnimation( path )
  1558. {
  1559.     path.currentSegment =3D path[0];    =09
  1560.     path.currentSegment.ticks =3D 0;    =09
  1561.     path.cntSegs =3D 0;                                =09
  1562. =09
  1563. =09
  1564.     if ( path.dir =3D=3D PD_BACK )                            =09
  1565.     {
  1566.         for ( var ii=3D0; ii<path.numSegs; ii++ )            =09
  1567.         {
  1568.             path[ii].dx *=3D -1;
  1569.             path[ii].dy *=3D -1;
  1570.             path[ii].remX *=3D -1;
  1571.             path[ii].remY *=3D -1;
  1572.         }
  1573.         path.dir =3D PD_FWD;                                =09
  1574.     }
  1575.     StartAnimationTimer( path, PathAnimationTick );
  1576. }
  1577. function StopPathAnimation( path, fPause )
  1578. {
  1579.     return;
  1580. }
  1581. function PathAnimationTick( path )
  1582. {
  1583.     var    objPlayer =3D path.objPlayer;            =09
  1584.     var segment =3D path.currentSegment;        =09
  1585.     var    currentPosition =3D objPlayer.position;=09
  1586.     if ( ++segment.ticks <=3D segment.travelTime )    =09
  1587.     {
  1588.         newX =3D currentPosition.x + segment.dx;        =09
  1589.         if ( segment.ticks <=3D Math.abs(segment.remX) )=09
  1590.             segment.remX > 0 ? newX++ : newX--;
  1591.         newY =3D currentPosition.y + segment.dy;        =09
  1592.         if ( segment.ticks <=3D Math.abs(segment.remY) )=09
  1593.             segment.remY > 0 ? newY++ : newY--;
  1594.         currentPosition.SetPosition( newX, newY );=09
  1595.         return false;                            =09
  1596.     }
  1597. =09
  1598. =09
  1599.     if ( ++path.cntSegs < path.numSegs )
  1600.     {
  1601.     =09
  1602.         path.currentSegment =3D path[segment.number+path.dir];    =09
  1603.         path.currentSegment.ticks =3D 0;                            =09
  1604.             =09
  1605.         return false;
  1606.     }
  1607.     =09
  1608. =09
  1609.     if            ( path.edgeEffect =3D=3D PE_AGAIN )    =09
  1610.     {
  1611.     =09
  1612.         objPlayer.position.SetPosition( path[0].x, path[0].y );
  1613.     =09
  1614.         path.currentSegment =3D path[0];                =09
  1615.         path.currentSegment.ticks =3D 0;                =09
  1616.         path.cntSegs =3D 0;                            =09
  1617.         return false;                                =09
  1618.     }                        =09
  1619.     else if        ( path.edgeEffect =3D=3D PE_REV )        =09
  1620.     {
  1621.         path.dir *=3D -1;                                =09
  1622.     =09
  1623.         for ( var ii=3D0; ii<path.numSegs; ii++ )
  1624.         {
  1625.             path[ii].dx *=3D -1;
  1626.             path[ii].dy *=3D -1;
  1627.             path[ii].remX *=3D -1;
  1628.             path[ii].remY *=3D -1;
  1629.         }
  1630.         path.currentSegment.ticks =3D 0;                =09
  1631.         path.cntSegs =3D 0;                            =09
  1632.         return false;
  1633.     }
  1634.     else if        ( path.edgeEffect =3D=3D PE_EXIT )
  1635.     {
  1636.         PlayerExit( objPlayer );
  1637.         return true;
  1638.     }
  1639.     else
  1640.         return true;                                =09
  1641. }
  1642. var    GROW_PER_TICK =3D new Array(20,14,8,4,1);    =09
  1643. function Size( zoom, rate )
  1644. {
  1645.     this.zoom =3D zoom;
  1646.     this.rate =3D rate;
  1647. }
  1648. function Grows( delay )
  1649. {
  1650. =09
  1651.     this.Initialize =3D InitializeGrowAnimation;
  1652.     this.Start =3D StartGrowAnimation;
  1653.     this.Trigger =3D StartGrowAnimation;
  1654.     this.Stop =3D StopGrowAnimation;
  1655.     this.StopEverything =3D StopGrowAnimation;
  1656. =09
  1657.     this.delay =3D delay;
  1658. }
  1659. function InitializeGrowAnimation( objPlayer, grow )
  1660. {
  1661.     if ( sys =3D=3D "Netscape" )
  1662.         return;
  1663.     var    child =3D objPlayer.HTML.children[0];                    =09
  1664.     var playerType =3D GetPlayerTypeFromName( objPlayer.name );=09
  1665. =09
  1666. =09
  1667. =09
  1668.     if ( stProjState =3D=3D PS_UNINITIALIZED )
  1669.     {
  1670.         grow.realWidth =3D child.width;
  1671.         grow.realHeight =3D child.height;
  1672.     }
  1673.     if ( (playerType =3D=3D PLAYER_TEXT) || sys =3D=3D "Netscape" )=09
  1674.     {
  1675.         grow =3D null;                                        =09
  1676.         return;
  1677.     }
  1678.     grow.objPlayer =3D objPlayer;                                =09
  1679. =09
  1680.     grow.currentSegment =3D grow[0];                            =09
  1681.     grow.currentGrowth =3D grow.currentSegment.zoom;            =09
  1682. =09
  1683. =09
  1684. =09
  1685.     child.width *=3D (grow.currentSegment.zoom / 100);        =09
  1686.     child.height *=3D (grow.currentSegment.zoom / 100);
  1687. =09
  1688.     for ( var growIndex=3D0; grow[growIndex] !=3D null; growIndex++ )=09
  1689.     {
  1690.         gx =3D parseInt(growIndex);                =09
  1691.         segment =3D grow[gx];                        =09
  1692.         if ( grow[gx+1] =3D=3D null )                =09
  1693.         {
  1694.             grow.finalSegment =3D grow[gx-1];        =09
  1695.             break;                                =09
  1696.         }
  1697.     =09
  1698.         growth =3D grow[gx+1].zoom - segment.zoom;                =09
  1699.         if ( growth >=3D 0 )                                        =09
  1700.             growthFactor =3D GROW_PER_TICK[segment.rate];            =09
  1701.         else
  1702.             growthFactor =3D -(GROW_PER_TICK[segment.rate]);
  1703.     =09
  1704.         growthTicks =3D growth / growthFactor;        =09
  1705.     =09
  1706.         segment.number =3D gx;                        =09
  1707.         segment.growth =3D growth;
  1708.         segment.growthFactor =3D growthFactor;
  1709.         segment.growthTicks =3D growthTicks;
  1710.         segment.currentTicks =3D 0;
  1711.     }
  1712. }
  1713. function StartGrowAnimation( grow )
  1714. {=09
  1715.     if ( sys =3D=3D "Netscape" )
  1716.         return;
  1717.     grow.currentSegment =3D grow[0];                        =09
  1718.     grow.currentTicks =3D 0;
  1719.     StartAnimationTimer( grow, GrowAnimationTick );
  1720. }
  1721. function StopGrowAnimation( grow, fPause )
  1722. {
  1723.     return;
  1724. }
  1725. function GrowAnimationTick( grow )
  1726. {
  1727.     if ( sys =3D=3D "Netscape" )
  1728.         return true;                                    =09
  1729.     var    objPlayer =3D grow.objPlayer;                        =09
  1730.     var    child =3D objPlayer.HTML.children[0];                =09
  1731.     var segment =3D grow.currentSegment;                    =09
  1732.     grow.currentGrowth +=3D segment.growthFactor;            =09
  1733.     child.width =3D grow.realWidth*(grow.currentGrowth/100);=09
  1734.     child.height =3D grow.realHeight*(grow.currentGrowth/100);
  1735.     if ( ++grow.currentTicks <=3D segment.growthTicks )    =09
  1736.         return false;                                    =09
  1737.     if ( grow.currentSegment =3D=3D grow.finalSegment )        =09
  1738.         return true;                                    =09
  1739.     grow.currentSegment =3D grow[ segment.number+1 ];        =09
  1740.     grow.currentTicks =3D 0;
  1741.     return false;                                        =09
  1742. }
  1743. function Timer()
  1744. {
  1745.     if ( Project.tickRate =3D=3D null )        =09
  1746.         this.tickRate =3D DEFAULT_TICK_RATE;
  1747.     else
  1748.         this.tickRate =3D Project.tickRate;
  1749.     this.oneShots =3D new Array();
  1750.     this.animations =3D new Array();
  1751.     this.tickCounter =3D 0;                        =09
  1752.     this.ticksPerSecond =3D 1000 / (this.tickRate);=09
  1753.     this.timerID =3D null;
  1754.     this.StartTicking =3D StartTicking;            =09
  1755.     this.StopTicking =3D StopTicking;
  1756. =09
  1757. }
  1758. function StartTicking()
  1759. {
  1760.     if ( this.timerID =3D=3D null )
  1761.         this.timerID =3D setInterval( "TimerTick()", this.tickRate );
  1762. }
  1763. function StopTicking()
  1764. {
  1765.     if ( this.timerID !=3D null )
  1766.         clearInterval( this.timerID );
  1767.     this.timerID =3D null;
  1768. }
  1769. function TimerTick()
  1770. {
  1771.     var timerEvent;
  1772. =09
  1773.     for ( var ii=3D0; ii<tickTimer.animations.length; ii++ )    =09
  1774.     {
  1775.         if ( (timerEvent=3DtickTimer.animations[ii]) =3D=3D null )=09
  1776.             continue;                                        =09
  1777.         if ( timerEvent.callback( timerEvent.callbackObj ) =3D=3D true )=09
  1778.             tickTimer.animations[ii] =3D null;                =09
  1779.     }
  1780. =09
  1781.     if ( (++tickTimer.tickCounter % tickTimer.ticksPerSecond) =3D=3D 0 )=09
  1782.     {
  1783.     =09
  1784.         var length =3D tickTimer.oneShots.length;                =09
  1785.         for ( var ii=3D0; ii<length && (tickTimer!=3Dnull); ii++ )=09
  1786.         {
  1787.             if ( (timerEvent=3DtickTimer.oneShots[ii]) =3D=3D null )=09
  1788.                 continue;                                    =09
  1789.         =09
  1790.             if ( timerEvent.time <=3D tickTimer.tickCounter )    =09
  1791.             {
  1792.                 tickTimer.oneShots[ii] =3D null;                =09
  1793.                 timerEvent.callback( timerEvent.callbackObj );=09
  1794.             }
  1795.         }
  1796.     }
  1797.     return;
  1798. }
  1799. function StartOneShotTimer( obj, time, callback, type )
  1800. {
  1801.     var    timerIndex;                                =09
  1802.     var timerEvent =3D new Object();                =09
  1803. =09
  1804.     timerEvent.callbackObj =3D obj;                =09
  1805.     timerEvent.callback =3D callback;                =09
  1806.     timerEvent.type =3D type;                        =09
  1807. =09
  1808. =09
  1809.     timerEvent.time =3D tickTimer.tickCounter + (time * =
  1810. tickTimer.ticksPerSecond);
  1811.     for ( timerIndex=3D0; tickTimer.oneShots[timerIndex]!=3Dnull; =
  1812. timerIndex++ );=09
  1813.     tickTimer.oneShots[timerIndex] =3D timerEvent;=09
  1814.     return;
  1815. }
  1816. function StartAnimationTimer( obj, callback )
  1817. {
  1818.     var timerIndex;=20
  1819.     timerEvent =3D new Object();
  1820.     timerEvent.callbackObj =3D obj;                =09
  1821.     timerEvent.callback =3D callback;                =09
  1822.     for ( timerIndex=3D0; tickTimer.animations[timerIndex]!=3Dnull; =
  1823. timerIndex++);=09
  1824.     tickTimer.animations[timerIndex] =3D timerEvent;
  1825. }
  1826. function StopSceneTimers()
  1827. {
  1828.     for (var ii=3D0; ii<tickTimer.oneShots.length; ii++)=09
  1829.     {
  1830.         if ( tickTimer.oneShots[ii] =3D=3D null )        =09
  1831.             continue;
  1832.         if ( tickTimer.oneShots[ii].type =3D=3D TMR_SCENE )
  1833.             tickTimer.oneShots[ii] =3D null;            =09
  1834.     }
  1835. =09
  1836.     for (var ii=3D0; ii<tickTimer.animations.length; ii++)
  1837.         tickTimer.animations[ii] =3D null;
  1838. }
  1839. =09
  1840. function KillTimer()
  1841. {
  1842.     if ( tickTimer !=3D null )                    =09
  1843.     {
  1844.         window.clearTimeout( tickTimer.timerID);=09
  1845.         tickTimer =3D null;                        =09
  1846.     }
  1847. }
  1848. function SetColor(el, color)=20
  1849. {
  1850.     if ( el.style =3D=3D null )                =09
  1851.         return;
  1852. =09
  1853.     el.style.backgroundColor =3D color;    =09
  1854.     if ("Netscape"=3D=3Dsys)=20
  1855.         el.NSLayer.bgColor =3D color;        =09
  1856. }
  1857. function SetZIndex(el, zindex)=20
  1858. {
  1859.     if ( el.style =3D=3D null )                =09
  1860.         return;
  1861. =09
  1862.     el.style.zIndex =3D zindex;            =09
  1863.     if ("Netscape"=3D=3Dsys)=20
  1864.         el.NSLayer.zIndex =3D zindex        =09
  1865. }
  1866. function SetVisibility(el, val)=20
  1867. {
  1868.     if ( el.style =3D=3D null )                =09
  1869.         return;
  1870.     el.style.visibility =3D val;            =09
  1871.        =20
  1872.     if ( "Netscape"=3D=3Dsys )                =09
  1873.     {
  1874.         if        ( val =3D=3D IE_HIDDEN )
  1875.             el.NSLayer.visibility =3D NAV_HIDDEN;
  1876.         else if ( val =3D=3D IE_VISIBLE )
  1877.             el.NSLayer.visibility =3D NAV_VISIBLE;
  1878.         else if ( val =3D=3D IE_INHERIT )
  1879.             el.NSLayer.visibility =3D NAV_INHERIT;
  1880.         else
  1881.             el.NSLayer.visibility =3D "";
  1882.     }
  1883. }
  1884. function Position( obj )
  1885. {
  1886.     this.object =3D obj;                        =09
  1887.     this.x =3D obj.HTML.style.pixelLeft;        =09
  1888.     this.y =3D obj.HTML.style.pixelTop;        =09
  1889.     this.SetPosition =3D SetPosition;
  1890. }
  1891. function SetPosition( newX, newY )=20
  1892. {
  1893.     var el =3D this.object.HTML;                =09
  1894.     if ( el.style =3D=3D null )                    =09
  1895.         return;
  1896.                 =09
  1897.     el.style.pixelTop =3D newY;    =09
  1898.     el.style.pixelLeft =3D newX;
  1899.     this.x =3D newX;                            =09
  1900.     this.y =3D newY;
  1901.     if ( "Netscape"=3D=3Dsys )                    =09
  1902.     {
  1903.         el.NSLayer.top =3D parseInt( newY );
  1904.         el.NSLayer.left =3D parseInt( newX );
  1905.         el.offsetTop =3D el.NSLayer.top;
  1906.         el.offsetLeft =3D el.NSLayer.left;
  1907.     }
  1908. }
  1909. function SetContent(el, content)=20
  1910. {
  1911.     if ( el.style =3D=3D null )                    =09
  1912.         return;
  1913.     if ( "Netscape"=3D=3Dsys )                    =09
  1914.     {
  1915.         el.NSLayer.document.open();            =09
  1916.         el.NSLayer.document.write(content);    =09
  1917.         el.NSLayer.document.close();        =09
  1918.     }
  1919.     else                                    =09
  1920.         el.innerHTML=3Dcontent;
  1921. }
  1922. function SetupButtons()
  1923. {
  1924.     var rtn =3D false;                    =09
  1925.     if ( document.all.Pause !=3D null )
  1926.     {
  1927.         document.all.Pause.onclick =3D Pause;
  1928.         strPause =3D document.all.Pause.value.split( '/' );
  1929.         document.all.Pause.value =3D strPause[0];
  1930.     }
  1931.     if (document.all.Stop !=3D null )
  1932.         document.all.Stop.onclick =3D Stop;
  1933.     if ( document.all.Forward !=3D null )
  1934.         document.all.Forward.onclick =3D Forward;
  1935.     if ( document.all.Backward !=3D null )
  1936.         document.all.Backward.onclick =3D Backward;
  1937.     if ( document.all.Webpage !=3D null )
  1938.         document.all.Webpage.onclick =3D GotoWebpage;
  1939.     if ( document.all.SceneStatus !=3D null )
  1940.         formStatus =3D document.all.SceneStatus;
  1941.     if ( document.all.Start !=3D null )
  1942.     {
  1943.         document.all.Start.onclick =3D Start;
  1944.         strPlay =3D document.all.Start.value.split( '/' );
  1945.         document.all.Start.value =3D strPlay[0];
  1946.         rtn =3D true;
  1947.     }
  1948.     else
  1949.         rtn =3D false;
  1950.     if ( document.all.NavigationButtons !=3D null )
  1951.         SetVisibility( document.all.NavigationButtons, IE_VISIBLE );
  1952.     return rtn;
  1953. }
  1954. function Start()
  1955. {
  1956.     if ( stNoInput )                                    =09
  1957.         return;
  1958.     if ( stButtons =3D=3D true )                            =09
  1959.     {
  1960.         document.all.Start.value =3D strPlay[1];
  1961.         if ( document.all.Pause !=3D null )
  1962.         {
  1963.             document.all.Pause.value =3D strPause[0];
  1964.         }
  1965.     }
  1966.     if            ( (stProjState =3D=3D PS_RUNNING) || (stProjState =3D=3D =
  1967. PS_PAUSED) )=09
  1968.     {
  1969.         ProjectShutdown();
  1970.         ProjectInitialize();
  1971.     }
  1972.     else if        ( stProjState !=3D PS_INITIALIZED )    =09
  1973.         ProjectInitialize();
  1974.     ProjectStart();                                    =09
  1975. }
  1976. function Pause()
  1977. {
  1978. =09
  1979.     if ( stProjState =3D=3D PS_PAUSED )                    =09
  1980.     {
  1981.         tickTimer.StartTicking();                    =09
  1982.         if ( document.all.Pause !=3D null )
  1983.         {
  1984.             document.all.Pause.value =3D strPause[0];
  1985.         }
  1986.         stProjState =3D PS_RUNNING;
  1987.         StatusChange();                                =09
  1988.     }
  1989.     else
  1990.     {
  1991.         if ( tickTimer !=3D null )                    =09
  1992.             tickTimer.StopTicking();                =09
  1993.         if    ( stProjState !=3D PS_RUNNING )            =09
  1994.             return;
  1995.         stProjState =3D PS_PAUSED;
  1996.         if ( document.all.Pause !=3D null )
  1997.         {
  1998.             document.all.Pause.value =3D strPause[1];
  1999.         }
  2000.         StopEverythingOnScenes( true );                =09
  2001.         StatusChange();                                =09
  2002.     }
  2003. }
  2004. function Stop()
  2005. {
  2006.     if ( stNoInput )                                    =09
  2007.         return;
  2008.     location.reload();
  2009. }
  2010. function Forward()
  2011. {
  2012.     if ( stNoInput )                                    =09
  2013.         return;
  2014. =09
  2015.     if ( stProjState !=3D PS_RUNNING )
  2016.         return;
  2017.     SceneExit( currentScene );                =09
  2018. }
  2019. function Backward()
  2020. {
  2021.     if ( stNoInput )                                    =09
  2022.         return;
  2023.     var nextScene;
  2024. =09
  2025. =09
  2026. =09
  2027.     if        ( stProjState =3D=3D PS_COMPLETE )
  2028.         nextScene =3D Project.stopScene;
  2029.     else if ( stProjState !=3D PS_RUNNING )
  2030.         return;
  2031.     else
  2032.         nextScene =3D (currentScene.number =3D=3D 0) ? 0 : currentScene.number =
  2033. - 1;
  2034.     ProjectShutdown();
  2035.     ProjectInitialize();
  2036.     ProjectStart( nextScene );            =09
  2037. }
  2038. function GotoWebpage()
  2039. {
  2040.     window.open( Project.webpage);                    =09
  2041. }
  2042. function StatusChange( )
  2043. {
  2044.     var        stsPage =3D null;                =09
  2045.     var        stsState =3D null;            =09
  2046.     if        ( stProjState =3D=3D PS_UNINITIALIZED )
  2047.     {
  2048.         stsState =3D "Initializing";
  2049.         stsPage =3D ""
  2050.     }
  2051.     else if ( stProjState =3D=3D PS_INITIALIZED )
  2052.     {
  2053.         stsState =3D "Ready";
  2054.         stsPage =3D "";
  2055.     }
  2056.     else if    ( stProjState =3D=3D PS_RUNNING )
  2057.     {
  2058.         stsState =3D "Playing";
  2059.         stsPage =3D (currentScene.number+1) + " / " + nScenes;
  2060.     }
  2061.     else if    ( stProjState =3D=3D PS_PAUSED )
  2062.         stsState =3D "Paused";
  2063.     else if    ( stProjState =3D=3D PS_COMPLETE )
  2064.         stsState =3D "Complete";
  2065. =09
  2066.     if ( (formStatus !=3D null) && (stsPage !=3D null) )
  2067.         formStatus.value =3D stsPage;
  2068. =09
  2069.     if ( stsState !=3D null )
  2070.         top.status =3D stsState;=20
  2071. }
  2072. function GetSceneFromNumber( sceneNum )
  2073. {
  2074.     return sceneArray[sceneNum];    =09
  2075. }
  2076. function GetPlayerFromName( playerName )
  2077. {
  2078.     var objPlayer;
  2079. =09
  2080. =09
  2081.     if ( (currentScene) && (currentScene.Players !=3Dnull) && ((objPlayer =
  2082. =3D currentScene.Players[playerName]) !=3D null) )                                                            =09
  2083.         return objPlayer;                    =09
  2084. =09
  2085.     var objScene;
  2086.     for ( sceneName in Scenes )                    =09
  2087.     {
  2088.         objScene =3D Scenes[sceneName];
  2089.         if ( objScene.Players !=3D null )
  2090.         {
  2091.             objPlayer =3D objScene.Players[playerName];
  2092.             if ( objPlayer !=3D null )
  2093.                 return objPlayer;                    =09
  2094.         }
  2095.     }=09
  2096.         =09
  2097.     return null;                                =09
  2098. }
  2099. function GetObjectTypeFromName( nameString )
  2100. {
  2101.     var type =3D nameString.substr(0,1);    =09
  2102.     if        ( type =3D=3D NAME_SCENE )        =09
  2103.         return OBJ_SCENE;
  2104.     else if    ( type =3D=3D NAME_PLAYER )        =09
  2105.         return OBJ_PLAYER;
  2106. }
  2107. function GetPlayerTypeFromName( nameString )
  2108. {
  2109.     var type =3D nameString.substr(1,1);    =09
  2110.     if        ( type =3D=3D PLAYER_NAME_IMAGE )    =09
  2111.         return PLAYER_IMAGE;
  2112.     else if    ( type =3D=3D PLAYER_NAME_DRAW )    =09
  2113.         return PLAYER_DRAW;
  2114.     else if    ( type =3D=3D PLAYER_NAME_TEXT )    =09
  2115.         return PLAYER_TEXT;
  2116. }
  2117. function resetGifAnimation()
  2118. {
  2119.     var temp =3D document.all["img1"].src;
  2120.     document.all["img1"].src =3D temp;
  2121. }
  2122. Project =3D new Project(50, 0, 0, 2, 1, 0, =
  2123. "http://home-publishing.com/SKU/V3Pub.asp");
  2124. Scenes =3D new Object();
  2125. Scenes.Sx1 =3D new Scene( 10 );
  2126. Scenes.Sx1.entryTrans =3D new Transition( -1, 2, 0, 0 );
  2127. Scenes.Sx1.Bhv =3D new Array();
  2128. Scenes.Sx1.Bhv[0] =3D new Sound( -1, -1, 0, 1, "AW62", =
  2129. "cid:028a01bdae6b$a528f360$7159389d@a-benex1.dns.microsoft.com" );
  2130. Scenes.Sx1.Players =3D new Object();
  2131. Scenes.Sx1.Players.PI24 =3D new Player( -1, -1 );
  2132. Scenes.Sx1.Players.PI24.Bhv =3D new Array();
  2133. Scenes.Sx1.Players.PI24.Bhv[0] =3D new Paths( -1, 0 );
  2134. Scenes.Sx1.Players.PI24.Bhv[0][0] =3D new Point( 673, 83, 4 );
  2135. Scenes.Sx1.Players.PI24.Bhv[0][1] =3D new Point( 367, 84, 4 );
  2136. Scenes.Sx1.Players.PI24.Bhv[0][2] =3D new Point( 367, 84, 4 );
  2137. Scenes.Sx1.Players.PD26 =3D new Player( -1, -1 );
  2138. Scenes.Sx1.Players.PD26.Bhv =3D new Array();
  2139. Scenes.Sx1.Players.PD26.Bhv[0] =3D new Paths( -1, 0 );
  2140. Scenes.Sx1.Players.PD26.Bhv[0][0] =3D new Point( 547, 150, 4 );
  2141. Scenes.Sx1.Players.PD26.Bhv[0][1] =3D new Point( 219, 151, 4 );
  2142. Scenes.Sx1.Players.PD26.Bhv[0][2] =3D new Point( 219, 151, 4 );
  2143. Scenes.Sx1.Players.PI4 =3D new Player( -1, -1 );
  2144. Scenes.Sx1.Players.PI4.Bhv =3D new Array();
  2145. Scenes.Sx1.Players.PI4.Bhv[0] =3D new Paths( -1, 0 );
  2146. Scenes.Sx1.Players.PI4.Bhv[0][0] =3D new Point( 710, 149, 4 );
  2147. Scenes.Sx1.Players.PI4.Bhv[0][1] =3D new Point( 400, 149, 4 );
  2148. Scenes.Sx1.Players.PI4.Bhv[0][2] =3D new Point( 400, 150, 4 );
  2149. Scenes.Sx1.Players.PT30 =3D new Player( 3, -1 );
  2150. Scenes.Sx1.Players.PT30.Bhv =3D new Array();
  2151. Scenes.Sx1.Players.PT30.Bhv[0] =3D new Sound( -1, -1, 0, 1, "AW63", =
  2152. "cid:005201bda308$99a90a20$7159389d@a-benex1.dns.microsoft.com" );
  2153.  
  2154. </SCRIPT>
  2155. </BODY></HTML>
  2156.  
  2157. ------=_NextPart_001_0303_01BDBE66.19C51550--
  2158.  
  2159. ------=_NextPart_000_0302_01BDBE66.19C51550
  2160. Content-Type: image/gif
  2161. Content-Transfer-Encoding: base64
  2162. Content-ID: <02f601bdbea0$c5b63760$745e389d@vhamil4.dns.microsoft.com>
  2163. X-Content-Source: C:\TEMP\IMG6A.GIF
  2164.  
  2165. R0lGODlhOwItAff/AP39/f///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  2166. AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  2167. AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  2168. AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  2169. AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  2170. AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  2171. AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  2172. AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  2173. AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  2174. AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  2175. AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  2176. AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  2177. AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  2178. AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP39/SH5BAEBAP8ALAAAAAA7Ai0B
  2179. QAjSAAMIHEiwoMGDCBMqXMiwocOHECNKnEixosWLGDNq3Mixo8ePIEMm/CeypMmTKFOqXMmypcuX
  2180. MGMOJCmzps2bOHPq3Mmzp0uaPoMKHUq0qNGjSBUCTcq0qdOnUKNKnTm1qtWrWLNqxbh0q9evYMOK
  2181. Ddp1rNmzaNOqtVh2rdu3cON+bSu3rt27eH3Szcu3r9+/IPcCHky4sGGDgg8rXsw4buLGkCNL1vp4
  2182. suXLmI1Wzsy5s+eYmz+LHk3aY+jSqFOrbnh6tevXqlvDnk2bs+zauHMzbb6tu7dvv7x/Cx8ONzjx
  2183. 48jFGk/OvLnV5c6jS08Kfbr16z2rY9/OHXT37+CLag9PvjzH8ebTq5eIfr379wjbw58PXz79++nt
  2184. 498PXj///9j5B+CA0QlI4IHIGYjggr8pyOCDuDkI4YSvSUjhhahoWYjhhp9pyOGHmHkI4oiRiUji
  2185. iYqZiOKKg6nI4ot8uQjjjHXJSOONbtmI445n6cjjj2D5COSQWQlJ5JFTGYnkkk4pyeSTRzkJ5ZRC
  2186. SUnllTtZieWWNmnJ5ZcveQnmmCqJSeaZJZmJ5pp4prHpZpBvxkmZnHQ+V+edUamJ554j8elnlH8G
  2187. OpSegvpJaKF7HoronYouSmejjsb5z6SUVmrppZhmqummnHbq6aeghirqqKSWauqpqKaq6qqsturq
  2188. q7DGKiunkdbqna24sgRprmfuyuuYvv76ZbDCbklssVcei+yUTsou+2Szzi4JbbRHTkvtkNZe+2O2
  2189. 2u7Ibbc3fgvujOKO+2K55q6IbronrsvuiO6++2G88m5Ib70X3ovvhPru+2C//i4IcMAHDkzwgAYf
  2190. /Ehfwgrvx3DD9z0M8XwST/xexRavh3HG+XHs7MYekwdyyP2RXOzIJnOHcsoBsszryi5PB3PMBdJs
  2191. 68w2M4dzzgny7OjOPg8HdNBGDRJd6NBG64Z00hEy/efSTs8GddQVUp2o1XhOjXVqWm9dWtdejwZ2
  2192. 2B2SLanZb46NdmZqr31Z225PBnfcJdLdq91kzo33YkR6731Y334XBnjgLRJurOFYDo54X4ovnlfj
  2193. jt8FeeQ1Uv6s5UxOjvlbmm++VueepwV66D2Sjq3pQI6Oeliqrz6X697CjjZj67IXWTuNtN9up+7n
  2194. 8t677+oCH7zw7RJfvPHwIp+88vMy37zz9kIfvfT5Ul+99fxin732/3I43733AoMfvvgFk1+++Qij
  2195. n776C7PfvvsOwx+//BHTX7/9FOOfv/4X89+//xoDYAAF2DECmid3BjxNCQITmCYGisyB4VkgBD8i
  2196. wQl2pIIW3AgGM5iRDXLwIh78YEVCKMKJkLCEETkhCh+iwhWyxoU1g2FzWijDPtUwOTS8IWJ02DMe
  2197. EieHPhQ6CBCDOEQfFpGHR9RhEm+4xBo2UYZPhGEUXTjFFVYRhVcsYRZFuMUPdpGDX8xgGC04xgmW
  2198. EYJndGAaGTq4xgS20YBvJGAcBThHANbRf3fkXx71t0f89dF+f6RfIOU3SPgV0n2HZF8i1bdI9DXS
  2199. fI8kXyTFN0nwOlXSe5fkXia1t0nsddJ6n6ReKKU3SuiV0nmnZF4qlbdK5LXSeK8kXiyFN0vg1dJ3
  2200. t+RdLnW3y9v1snYWv5RdMGE3TNcVc3XHRF0yTbdM0v0jIAA7
  2201.  
  2202. ------=_NextPart_000_0302_01BDBE66.19C51550
  2203. Content-Type: image/gif
  2204. Content-Transfer-Encoding: 7bit
  2205. Content-ID: <00a501bd79e1$c02514a0$7159389d@a-benex1.dns.microsoft.com>
  2206. X-Content-Source: C:\WINDOWS\DESKTOP\Sourcesafe dest5\j0095629.gif
  2207. X-Global-Moniker: :HOMEPREM\MAIN\HMPRDIR2\J0095629.GIF
  2208.  
  2209.  
  2210. ------=_NextPart_000_0302_01BDBE66.19C51550
  2211. Content-Type: image/jpeg
  2212. Content-Transfer-Encoding: 7bit
  2213. Content-ID: <00bf01bd79e2$49f05960$7159389d@a-benex1.dns.microsoft.com>
  2214. X-Content-Source: C:\WINDOWS\DESKTOP\Sourcesafe dest5\photos\PH00952H.JPG
  2215. X-Global-Moniker: :HOMEPREM\MAIN\HMPRDIR2\PH00952H.JPG
  2216.  
  2217.  
  2218. ------=_NextPart_000_0302_01BDBE66.19C51550
  2219. Content-Type: image/gif
  2220. Content-Transfer-Encoding: base64
  2221. Content-ID: <00b401bda9f1$cd159c80$7159389d@a-benex1.dns.microsoft.com>
  2222. X-Content-Source: C:\WINDOWS\TEMP\IMG60F0.GIF
  2223.  
  2224. R0lGODdhZgA1AfcAAP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  2225. AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  2226. AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  2227. AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  2228. AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  2229. AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  2230. AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  2231. AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  2232. AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  2233. AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  2234. AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  2235. AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  2236. AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  2237. AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAAAALAAAAABmADUB
  2238. QAivAAEIHEiwoMGDCBMqXMiwocOHECNKnEixosWLGDNq3Mixo8ePIEOKHEmypMmTKFOqXMmypcuX
  2239. MGPKnEmzps2bOHPq3Mmzp8+fQIMKHUq0qNGjSJMqXcq0qdOnUKNKnUq1qtWrWLNq3cq1q9evYMOK
  2240. HUu2rNmzaNOqXcu2rdu3cOPKnUu3rt27ePPq3cu3r9+/gAMLHky4sOHDiBMrXsy4sePHkCNLnky5
  2241. suXLmDNr3knMubPnz6BDix5NurTp06hTq17NurXr17Bjy55Nu7bt27hz697Nu7fv38CDCx9OvLjx
  2242. 48iTK1/OvLnz59CjS59Ovbr169iza9/OJb279+/gw4sfT768+fPo06tfz769+/fw48ufT7++/fv4
  2243. 8+t/HBAAOw==
  2244.  
  2245. ------=_NextPart_000_0302_01BDBE66.19C51550
  2246. Content-Type: audio/wav
  2247. Content-Transfer-Encoding: 7bit
  2248. Content-ID: <028a01bdae6b$a528f360$7159389d@a-benex1.dns.microsoft.com>
  2249. X-Content-Source: C:\WINDOWS\DESKTOP\renamed template elements\j0095972.wav
  2250. X-Global-Moniker: :HALLMARK\MAIN\j0095972.wav
  2251.  
  2252.  
  2253. ------=_NextPart_000_0302_01BDBE66.19C51550
  2254. Content-Type: audio/wav
  2255. Content-Transfer-Encoding: 7bit
  2256. Content-ID: <005201bda308$99a90a20$7159389d@a-benex1.dns.microsoft.com>
  2257. X-Content-Source: C:\WINDOWS\DESKTOP\Sounds\rimsht04.wav
  2258. X-Global-Moniker: :HOMESNMM\MAIN\RIMSHT04.WAV
  2259.  
  2260.  
  2261. ------=_NextPart_000_0302_01BDBE66.19C51550
  2262. Content-Type: application/x-font
  2263. Content-Transfer-Encoding: 7bit
  2264. Content-ID: <030001bdbea0$c60bf880$745e389d@vhamil4.dns.microsoft.com>
  2265. X-Content-Source: Kristen ITC.eot
  2266.  
  2267.  
  2268. ------=_NextPart_000_0302_01BDBE66.19C51550--
  2269.